diff options
author | StormBytePP <stormbyte@gmail.com> | 2015-09-21 15:09:41 +0200 |
---|---|---|
committer | StormBytePP <stormbyte@gmail.com> | 2015-09-21 15:11:06 +0200 |
commit | 7b245a0b6b9902ebea98d2a945d4ee0e26a62681 (patch) | |
tree | a30ef097011505ac095c267fc2f667fadac409bd /src/common/Utilities/Util.h | |
parent | ff71da2b05210c1d0ed088ef12b06bf4632ff830 (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 3da1c800410..6a872b44a60 100644 --- a/src/common/Utilities/Util.h +++ b/src/common/Utilities/Util.h @@ -537,7 +537,7 @@ bool CompareValues(ComparisionType type, T val1, T val2) return val1 <= val2; default: // incorrect parameter - ASSERT(false); + ABORT(); return false; } } |