mirror of
https://github.com/nothings/stb.git
synced 2026-08-31 00:03:44 +00:00
Don't use __asm int 3; on 64-bit platforms
This commit is contained in:
8
stb.h
8
stb.h
@@ -1021,9 +1021,15 @@ void stb_fatal(char *s, ...)
|
||||
vfprintf(stderr, s, a);
|
||||
va_end(a);
|
||||
fputs("\n", stderr);
|
||||
#ifdef _WIN32
|
||||
#ifdef STB_DEBUG
|
||||
#ifdef _MSC_VER
|
||||
#ifndef STB_PTR64
|
||||
__asm int 3; // trap to debugger!
|
||||
#else
|
||||
__debugbreak();
|
||||
#endif
|
||||
#else
|
||||
__builtin_trap();
|
||||
#endif
|
||||
#endif
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user