Use bx::assertFunction in BGFX_ASSERT.
This commit is contained in:
parent
e60dab3c12
commit
cf440e29f3
14
src/bgfx_p.h
14
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, ...) \
|
||||
|
Loading…
Reference in New Issue
Block a user