| 51 | } |
| 52 | |
| 53 | static void Error(const flatbuffers::FlatCompiler *flatc, |
| 54 | const std::string &err, bool usage, bool show_exe_name) { |
| 55 | if (show_exe_name) { printf("%s: ", g_program_name); } |
| 56 | if (usage && flatc) { |
| 57 | fprintf(stderr, "%s\n", flatc->GetShortUsageString(g_program_name).c_str()); |
| 58 | } |
| 59 | fprintf(stderr, "\nerror:\n %s\n\n", err.c_str()); |
| 60 | exit(1); |
| 61 | } |
| 62 | |
| 63 | namespace flatbuffers { |
| 64 | void LogCompilerWarn(const std::string &warn) { |
no test coverage detected