summaryrefslogtreecommitdiff
path: root/ZAPD/WarningHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ZAPD/WarningHandler.cpp')
-rw-r--r--ZAPD/WarningHandler.cpp12
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);
}
}