Add a debug print to help bugs like 5486.

svn path=/trunk/; revision=48078
This commit is contained in:
Gabriel Ilardi 2010-07-16 13:00:02 +00:00
parent d17757a733
commit f9dc8f0766

View file

@ -12,6 +12,7 @@ void _assert(const char *msg, const char *file, unsigned line)
{
/* Assertion failed at foo.c line 45: x<y */
fprintf(stderr, "Assertion failed at %s line %d: %s\n", file, line, msg);
DPRINT1("Assertion failed at %s line %d: %s\n", file, line, msg);
raise(SIGABRT);
for(;;); /* eliminate warning by mingw */
}