mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
92c63e848a
In generated text fixture location lookup code: When the second argument to write_file() is a list, it is written one item per line to the path specified by the first argument. This ensures that we emit a trailing newline at EOF to comply with -Wnewline-eof. Elsewhere: Lack of a newline at EOF was undefined behaviour prior to C++11. The Fuchsia tree sets -Wnewline-eof in its buildroot, so we plan to do the same. This cleans up remaining first-party C++ sources that don't include a trailing newline.
This code is intended to be built into plugins and applications to provide higher-level, C++ abstractions for interacting with the Flutter library. Over time, the goal is to move more of this code into the library in a way that provides a usable ABI (e.g., does not use standard library in the interfaces). Note that this wrapper is still in early stages. Expect significant churn in both the APIs and the structure of the wrapper (e.g., the exact set of files that need to be built).