ソースを参照

Added no return to debugBreak to hint code analysis.

Branimir Karadzic 11 年 前
コミット
cbec117a46
1 ファイル変更7 行追加0 行削除
  1. 7 0
      include/bx/debug.h

+ 7 - 0
include/bx/debug.h

@@ -27,6 +27,11 @@ extern "C" void NSLog(CFStringRef _format, ...);
 
 
 namespace bx
 namespace bx
 {
 {
+	BX_PRAGMA_DIAGNOSTIC_PUSH();
+	BX_PRAGMA_DIAGNOSTIC_IGNORED_CLANG("-Winvalid-noreturn");
+
+	inline void debugBreak() BX_NO_RETURN;
+
 	inline void debugBreak()
 	inline void debugBreak()
 	{
 	{
 #if BX_COMPILER_MSVC
 #if BX_COMPILER_MSVC
@@ -43,6 +48,8 @@ namespace bx
 #endif // BX
 #endif // BX
 	}
 	}
 
 
+	BX_PRAGMA_DIAGNOSTIC_POP();
+
 	inline void debugOutput(const char* _out)
 	inline void debugOutput(const char* _out)
 	{
 	{
 #if BX_PLATFORM_ANDROID
 #if BX_PLATFORM_ANDROID