From cf440e29f39a619f950ad9c527cc77f837d394e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Mon, 13 Nov 2023 20:57:54 -0800 Subject: [PATCH] Use bx::assertFunction in BGFX_ASSERT. --- src/bgfx_p.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/bgfx_p.h b/src/bgfx_p.h index 13b677ed9..81f05017d 100644 --- a/src/bgfx_p.h +++ b/src/bgfx_p.h @@ -92,13 +92,13 @@ namespace bgfx } \ BX_MACRO_BLOCK_END -#define _BGFX_ASSERT(_condition, _format, ...) \ - BX_MACRO_BLOCK_BEGIN \ - if (!BX_IGNORE_C4127(_condition) ) \ - { \ - BX_TRACE("ASSERT " _format, ##__VA_ARGS__); \ - bgfx::fatal(__FILE__, uint16_t(__LINE__), bgfx::Fatal::DebugCheck, _format, ##__VA_ARGS__); \ - } \ +#define _BGFX_ASSERT(_condition, _format, ...) \ + BX_MACRO_BLOCK_BEGIN \ + if (!BX_IGNORE_C4127(_condition) \ + && bx::assertFunction(bx::Location::current(), "ASSERT " #_condition " -> " _format, ##__VA_ARGS__) ) \ + { \ + bgfx::fatal(__FILE__, uint16_t(__LINE__), bgfx::Fatal::DebugCheck, _format, ##__VA_ARGS__); \ + } \ BX_MACRO_BLOCK_END #define BGFX_FATAL(_condition, _err, _format, ...) \