diff options
author | 2024-04-11 00:16:51 +0700 | |
---|---|---|
committer | 2024-04-11 03:16:51 +1000 | |
commit | 2c566627a1fc0ab21cc0399e8ad0ce134e36b53f (patch) | |
tree | 8eb19fad727675c673de8e59a7fd6137e14f2cfd /3rdparty/asmjit/test/broken.cpp | |
parent | 4bcbfac11f352eabcae33b203c026ce02b3fd4ba (diff) |
3rdparty/asmjit: Updated to upstream version 1.13.0. (#12228)
From revision asmjit/asmjit@e5d7c0bd5d9aec44d68830187138149e6a8c4e32
Diffstat (limited to '3rdparty/asmjit/test/broken.cpp')
-rw-r--r-- | 3rdparty/asmjit/test/broken.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/3rdparty/asmjit/test/broken.cpp b/3rdparty/asmjit/test/broken.cpp index bb874fdc13b..c28ffa7288e 100644 --- a/3rdparty/asmjit/test/broken.cpp +++ b/3rdparty/asmjit/test/broken.cpp @@ -25,12 +25,11 @@ // // For more information, please refer to <http://unlicense.org> -#include "./broken.h" +#include "broken.h" #include <stdarg.h> -// ============================================================================ -// [Broken - Global] -// ============================================================================ +// Broken - Globals +// ================ // Zero initialized globals. struct BrokenGlobal { @@ -56,9 +55,8 @@ struct BrokenGlobal { }; static BrokenGlobal _brokenGlobal; -// ============================================================================ -// [Broken - API] -// ============================================================================ +// Broken - API +// ============ // Get whether the string `a` starts with string `b`. static bool BrokenAPI_startsWith(const char* a, const char* b) noexcept { @@ -185,7 +183,7 @@ bool BrokenAPI::hasArg(const char* name) noexcept { return _brokenGlobal.hasArg(name); } -void BrokenAPI::add(Unit* unit) noexcept { +void BrokenAPI::addUnit(Unit* unit) noexcept { Unit** pPrev = &_brokenGlobal._unitList; Unit* current = *pPrev; @@ -308,5 +306,5 @@ void BrokenAPI::fail(const char* file, int line, const char* expression, const c fprintf(dst, " SOURCE: %s (Line: %d)\n", file, line); fflush(dst); - exit(1); + abort(); } |