mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-04 04:33:23 +00:00
remove travis config (#7522)
* remove travis config * remove more travis and appveyor stuff * remove appveyor specific things
This commit is contained in:
23
src/util.cpp
23
src/util.cpp
@@ -426,29 +426,6 @@ bool ReadEnvironmentVariable(const char *var_name, std::string *_value) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void SetupDefaultCRTReportMode() {
|
||||
// clang-format off
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// By default, send all reports to STDOUT to prevent CI hangs.
|
||||
// Enable assert report box [Abort|Retry|Ignore] if a debugger is present.
|
||||
const int dbg_mode = (_CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG) |
|
||||
(IsDebuggerPresent() ? _CRTDBG_MODE_WNDW : 0);
|
||||
(void)dbg_mode; // release mode fix
|
||||
// CrtDebug reports to _CRT_WARN channel.
|
||||
_CrtSetReportMode(_CRT_WARN, dbg_mode);
|
||||
_CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDOUT);
|
||||
// The assert from <assert.h> reports to _CRT_ERROR channel
|
||||
_CrtSetReportMode(_CRT_ERROR, dbg_mode);
|
||||
_CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDOUT);
|
||||
// Internal CRT assert channel?
|
||||
_CrtSetReportMode(_CRT_ASSERT, dbg_mode);
|
||||
_CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDOUT);
|
||||
#endif
|
||||
|
||||
// clang-format on
|
||||
}
|
||||
|
||||
std::string ConvertCase(const std::string &input, Case output_case,
|
||||
Case input_case) {
|
||||
if (output_case == Case::kKeep) return input;
|
||||
|
||||
Reference in New Issue
Block a user