Added nhassert() support to tile2bmp.

This commit is contained in:
Bart House
2018-11-22 15:03:00 -08:00
parent 05c9ccc035
commit a27fd2d83d

View File

@@ -360,3 +360,10 @@ pixel (*pixels)[TILE_X];
}
}
}
/* nhassert_failed is called when an nhassert's condition is false */
void nhassert_failed(const char * exp, const char * file, int line)
{
Fprintf(stderr, "NHASSERT(%s) in '%s' at line %d\n", exp, file, line);
exit(EXIT_FAILURE);
}