| 44 | static const char *g_program_name = nullptr; |
| 45 | |
| 46 | static void Warn(const flatbuffers::FlatCompiler *flatc, |
| 47 | const std::string &warn, bool show_exe_name) { |
| 48 | (void)flatc; |
| 49 | if (show_exe_name) { printf("%s: ", g_program_name); } |
| 50 | fprintf(stderr, "\nwarning:\n %s\n\n", warn.c_str()); |
| 51 | } |
| 52 | |
| 53 | static void Error(const flatbuffers::FlatCompiler *flatc, |
| 54 | const std::string &err, bool usage, bool show_exe_name) { |
no test coverage detected