5 Commits

Author SHA1 Message Date
Yurii Nakonechnyi
c6d6b04119
Added GLFW error-callback into FlutterEmbedderGLFW (#19998)
GLFW Error callback useful to clarify reasons of 'glfwInit()' failure.

On some platforms/desktop environments may be really strange failure reasons, like (in my case): "Linux: Failed to initialize inotify: Too many open files", so descriptive error messages helps to solve problem.
2020-09-24 14:39:20 -07:00
Chris Bracken
16b900b63e
Prefer C++ standard headers to their C counterpart (#21091)
We currently use a mix of C standard includes (e.g. limits.h) and their
C++ variants (e.g. climits). This migrates to a consistent style for all
cases where the C++ variants are acceptable, but leaves the C
equivalents in place where they are required, such as in the embedder
API and other headers that may be used from C.
2020-09-11 17:10:00 -07:00
Chris Bracken
36f7f3ca82
Copyright header hygiene improvements (#21089)
Add copyright headers in a few files where they were missing.

Trim trailing blank comment line where present, for consistency with
other engine code.

Use the standard libtxt copyright header in one file where it differed
(extra (C) and comma compared to other files in libtxt).

This also amends tools/const_finder/test/const_finder_test.dart to look
for a const an additional four lines down to account for the copyright
header added to the test fixture.
2020-09-11 08:55:37 -07:00
Yurii Nakonechnyi
e4f84f19fd
Clarify that run.sh builds and runs the GLFW example 2020-09-09 17:11:20 -07:00
gaaclarke
4943475c03
Added an embedder example (#12808) 2019-10-08 10:07:27 -07:00