Don't use __asm int 3; on 64-bit platforms

pull/126/head
Robert Nix 2015-06-09 12:44:50 -05:00
parent aa89970d6b
commit b639b6a468
1 changed files with 7 additions and 1 deletions

8
stb.h
View File

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