From 11ef14630b410a8a19c73116f8d854cb0b49195d 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, 1 Jul 2019 18:59:26 -0700 Subject: [PATCH] Cleanup. --- src/debug.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/debug.cpp b/src/debug.cpp index 6f3d098..8737502 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -9,10 +9,6 @@ #include // WriterI #include // PRIx* -#if BX_PLATFORM_EMSCRIPTEN -#include -#endif - #if BX_CRT_NONE # include "crt0.h" #elif BX_PLATFORM_ANDROID @@ -28,8 +24,8 @@ extern "C" __declspec(dllimport) void __stdcall OutputDebugStringA(const char* _ # include extern "C" void NSLog(CFStringRef _format, ...); # endif // defined(__OBJC__) -#elif 0 // BX_PLATFORM_EMSCRIPTEN -# include +#elif BX_PLATFORM_EMSCRIPTEN +# include #else # include // fputs, fflush #endif // BX_PLATFORM_WINDOWS @@ -49,9 +45,9 @@ namespace bx __asm__ ("int $3"); #elif BX_PLATFORM_EMSCRIPTEN emscripten_log(EM_LOG_CONSOLE | EM_LOG_ERROR | EM_LOG_C_STACK | EM_LOG_JS_STACK | EM_LOG_DEMANGLE, "debugBreak!"); - // Doing emscripten_debugger() disables asm.js validation due to an emscripten bug + // Doing emscripten_debugger() disables asm.js validation due to an emscripten bug //emscripten_debugger(); - EM_ASM({ debugger; }); + EM_ASM({ debugger; }); #else // cross platform implementation int* int3 = (int*)3L; *int3 = 3;