diff options
| author | Anghelo Carvajal <angheloalf95@gmail.com> | 2022-01-20 23:47:57 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-20 21:47:57 -0500 |
| commit | 119a6883e6f795815744b9afd6a79084c619ddb6 (patch) | |
| tree | a8c34608bd215d56564ad46f03e235ddb9ed12e8 /ZAPD/WarningHandler.cpp | |
| parent | be71e26d9afc470a9293e74a6f56ca87f7412be0 (diff) | |
Automatic limbs enum generation (#221)
* proof of concept
* SetLimbIndex
* LIMB_DONE
* use proper enum name in limbs
* fix naming
* add ifdefs
* fix me being dumb
* format
* Add EnumPrefix
* EnumName
* Remove autogenerator stuff
* Add warnings
* format
* Use HANDLE_WARNING_RESOURCE for warning
* object_box special case
* whoops
* Remove overloaded bitconverter methods and use boundary-checker .at method when possible
* Fix warning
* Fix warning
* format
* Hopefully fix every warning now
* docs
* Review
* typo
* Update jenkinsfile for MM
* format
* Force functionpreamble printing in development mode
* Use ARRAY_COUNT on SkeletonHeaders
* Simplify endif in header guards
* fix limbs using the wrong enum value
* use hex in enum comments
Diffstat (limited to 'ZAPD/WarningHandler.cpp')
| -rw-r--r-- | ZAPD/WarningHandler.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ZAPD/WarningHandler.cpp b/ZAPD/WarningHandler.cpp index 29f8352..163b028 100644 --- a/ZAPD/WarningHandler.cpp +++ b/ZAPD/WarningHandler.cpp @@ -199,8 +199,16 @@ bool WarningHandler::WasElevatedToError(WarningType warnType) { * Print file/line/function info for debugging */ void WarningHandler::FunctionPreamble(const char* filename, int32_t line, const char* function) { - if (Globals::Instance->verbosity >= VerbosityLevel::VERBOSITY_DEBUG) { - fprintf(stderr, "%s:%i: in function %s:\n", filename, line, function); + bool forcePrint = false; + +#ifdef DEVELOPMENT + forcePrint = true; +#endif + + fprintf(stderr, "\n"); + + if (forcePrint || Globals::Instance->verbosity >= VerbosityLevel::VERBOSITY_DEBUG) { + fprintf(stderr, "%s:%i: in function <%s>:\n", filename, line, function); } } |
