Added nhassert to core.

This commit is contained in:
Bart House
2019-07-11 22:01:39 -07:00
parent dde11630e8
commit 3842da9dbd
5 changed files with 9 additions and 22 deletions

View File

@@ -483,16 +483,6 @@ char *buf;
}
#endif /* RUNTIME_PORT_ID */
/* nhassert_failed is called when an nhassert's condition is false */
void nhassert_failed(const char * exp, const char * file, int line)
{
char message[BUFSZ];
snprintf(message, sizeof(message),
"NHASSERT(%s) in '%s' at line %d", exp, file, line);
impossible(message);
}
void
nethack_exit(code)
int code;