This commit is contained in:
Branimir Karadžić
2025-10-21 18:03:23 -07:00
parent c8128850f8
commit af959f53f9
2 changed files with 3 additions and 3 deletions

View File

@@ -100,8 +100,8 @@ extern "C" void* __cdecl _alloca(size_t _size);
#define BX_ALIGN_DECL_CACHE_LINE(_decl) BX_ALIGN_DECL(BX_CACHE_LINE_SIZE, _decl)
///
#define BX_MACRO_BLOCK_BEGIN for(;;) {
#define BX_MACRO_BLOCK_END break; }
#define BX_MACRO_BLOCK_BEGIN do {
#define BX_MACRO_BLOCK_END } while (false)
#define BX_NOOP(...) BX_MACRO_BLOCK_BEGIN BX_MACRO_BLOCK_END
///

View File

@@ -85,7 +85,7 @@ namespace bx
{
va_list argList;
va_start(argList, _format);
const bool result = s_assertHandler(_location, _skip, _format, argList);
const bool result = s_assertHandler(_location, _skip + 1 /* skip self */, _format, argList);
va_end(argList);
return result;