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

master
Robert Nix ago%!(EXTRA string=10 years)
parent aa89970d6b
commit b639b6a468
  1. 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);

Loading…
Cancel
Save