Added nhassert() support.
This commit is contained in:
@@ -1637,4 +1637,11 @@ short ospeed;
|
|||||||
#endif
|
#endif
|
||||||
#endif /* STRICT_REF_DEF */
|
#endif /* STRICT_REF_DEF */
|
||||||
|
|
||||||
|
/* 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);
|
||||||
|
}
|
||||||
|
|
||||||
/*lev_main.c*/
|
/*lev_main.c*/
|
||||||
|
|||||||
Reference in New Issue
Block a user