X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/copy_structured?a=blobdiff_plain;f=src%2Fmisc.h;h=ddc6be6617c8b691fd06dd57365f5b1afa71b9d4;hb=4d6dba920fe02c38aa234c4991d72418e802314a;hp=bc3e274a5c2c3a181396a630f60f574123a2d889;hpb=3f2b7a8d7dc649f5afecedf7b630ae964ec5bfe4;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.