Added no return to debugBreak to hint code analysis.

This commit is contained in:
Branimir Karadzic
2014-10-21 19:26:10 -07:00
parent 4e710ec41d
commit cbec117a46

View File

@@ -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