diff options
author | StormBytePP <stormbyte@gmail.com> | 2015-09-21 15:17:05 +0200 |
---|---|---|
committer | StormBytePP <stormbyte@gmail.com> | 2015-09-21 15:17:05 +0200 |
commit | 0bed9d56cb9f10979492187c51042802272ce8ed (patch) | |
tree | 626a32a25a1486bf650e20518235f5ff6c7bffe0 /src/common/Utilities/Util.h | |
parent | 32a2e584296556e852830e50cfa612ce279360b6 (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/Utilities/Util.h')
-rw-r--r-- | src/common/Utilities/Util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/Utilities/Util.h b/src/common/Utilities/Util.h index a96fd21058f..a48a3e42f3b 100644 --- a/src/common/Utilities/Util.h +++ b/src/common/Utilities/Util.h @@ -550,7 +550,7 @@ bool CompareValues(ComparisionType type, T val1, T val2) return val1 <= val2; default: // incorrect parameter - ASSERT(false); + ABORT(); return false; } } |