From a27fd2d83daf464ea8dbfaf6eef98c270b2d1e79 Mon Sep 17 00:00:00 2001 From: Bart House Date: Thu, 22 Nov 2018 15:03:00 -0800 Subject: [PATCH] Added nhassert() support to tile2bmp. --- win/share/tile2bmp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/win/share/tile2bmp.c b/win/share/tile2bmp.c index ca2c7dd73..6722bbc26 100644 --- a/win/share/tile2bmp.c +++ b/win/share/tile2bmp.c @@ -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); +} -- 2.40.0