X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fmisc.h;h=ddc6be6617c8b691fd06dd57365f5b1afa71b9d4;hb=3f1efd2140c58164d692a107aa468048e756036c;hp=bc3e274a5c2c3a181396a630f60f574123a2d889;hpb=c72ed6261224cc0a1b8aa72f6af966715970ff60;p=plomrogue diff --git a/src/misc.h b/src/misc.h index bc3e274..ddc6be6 100644 --- a/src/misc.h +++ b/src/misc.h @@ -20,8 +20,8 @@ struct Map; */ extern uint16_t rrand(); -/* Returns message: "Trouble in ".parent." with ".child."." (try_*() helper) */ -extern char * trouble_msg(char * parent, char * child); +/* Do exit_err() with message: "Trouble in ".parent." with ".child."." */ +extern void exit_trouble(uint8_t test, char * parent, char * child); /* Wrappers to malloc(), calloc() from function called "f" calling exit_err() * with trouble_msg() error message if necessary.