mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 04:53:06 +01:00
Added no return to debugBreak to hint code analysis.
This commit is contained in:
@@ -27,6 +27,11 @@ extern "C" void NSLog(CFStringRef _format, ...);
|
||||
|
||||
namespace bx
|
||||
{
|
||||
BX_PRAGMA_DIAGNOSTIC_PUSH();
|
||||
BX_PRAGMA_DIAGNOSTIC_IGNORED_CLANG("-Winvalid-noreturn");
|
||||
|
||||
inline void debugBreak() BX_NO_RETURN;
|
||||
|
||||
inline void debugBreak()
|
||||
{
|
||||
#if BX_COMPILER_MSVC
|
||||
@@ -43,6 +48,8 @@ namespace bx
|
||||
#endif // BX
|
||||
}
|
||||
|
||||
BX_PRAGMA_DIAGNOSTIC_POP();
|
||||
|
||||
inline void debugOutput(const char* _out)
|
||||
{
|
||||
#if BX_PLATFORM_ANDROID
|
||||
|
||||
Reference in New Issue
Block a user