Fix compile on OSX by defining os_DebugBreak

This is an equivalent of the same functionality as per
http://stackoverflow.com/a/5561015
This commit is contained in:
TwistedUmbrella 2015-05-23 12:24:29 -04:00
parent 97569a9f24
commit 3f2f400c59
1 changed files with 7 additions and 1 deletions

View File

@ -507,7 +507,13 @@ using namespace std;
#define VER_FULLNAME VER_EMUNAME " rel0" _X_x_X_MMU_VER_STR " (built " __DATE__ "@" __TIME__ ")"
#define VER_SHORTNAME VER_EMUNAME " rel0" _X_x_X_MMU_VER_STR
#if HOST_OS == OS_DARWIN
void os_DebugBreak() {
raise(SIGTRAP);
}
#else
void os_DebugBreak();
#endif
#define dbgbreak os_DebugBreak()
#if COMPILER_VC==BUILD_COMPILER