aboutsummaryrefslogtreecommitdiff
path: root/src/common/Debugging/Errors.cpp
diff options
context:
space:
mode:
authorStormBytePP <stormbyte@gmail.com>2015-09-21 15:17:05 +0200
committerStormBytePP <stormbyte@gmail.com>2015-09-21 15:17:05 +0200
commit0bed9d56cb9f10979492187c51042802272ce8ed (patch)
tree626a32a25a1486bf650e20518235f5ff6c7bffe0 /src/common/Debugging/Errors.cpp
parent32a2e584296556e852830e50cfa612ce279360b6 (diff)
Core: Added ABORT() macro to prevent the usage of ASSERT(false) as a quick hack to crash the core misusing assert
Diffstat (limited to 'src/common/Debugging/Errors.cpp')
-rw-r--r--src/common/Debugging/Errors.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/Debugging/Errors.cpp b/src/common/Debugging/Errors.cpp
index cebd9d4cf2f..4612fcb7910 100644
--- a/src/common/Debugging/Errors.cpp
+++ b/src/common/Debugging/Errors.cpp
@@ -72,4 +72,10 @@ void Warning(char const* file, int line, char const* function, char const* messa
file, line, function, message);
}
+void Abort(char const* file, int line, char const* function)
+{
+ fprintf(stderr, "\n%s:%i in %s ABORTED.\n",
+ file, line, function, message);
+}
+
} // namespace Trinity