Force JS_Assert to exit with code 3 on Windows, debug only, r=mrbkap,sr=brendan,a=beltzner, bug 345118
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@203713 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -56,6 +56,7 @@ JS_PUBLIC_API(void) JS_Assert(const char *s, const char *file, JSIntn ln)
|
||||
fprintf(stderr, "Assertion failure: %s, at %s:%d\n", s, file, ln);
|
||||
#if defined(WIN32)
|
||||
DebugBreak();
|
||||
exit(3);
|
||||
#elif defined(XP_OS2) || (defined(__GNUC__) && defined(__i386))
|
||||
asm("int $3");
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user