Core: Added ABORT() macro to prevent the usage of ASSERT(false) as a quick hack to crash the core misusing assert

This commit is contained in:
StormBytePP
2015-09-21 15:17:05 +02:00
parent 32a2e58429
commit 0bed9d56cb
24 changed files with 57 additions and 49 deletions

View File

@@ -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