(oops): Move declaration to misc.h, to make CANT_HAPPEN() usable
with just misc.h included.
This commit is contained in:
parent
3a18d0b986
commit
320322cda9
2 changed files with 2 additions and 1 deletions
|
@ -125,6 +125,7 @@ extern int daemonize;
|
|||
* Usage: if (CANT_HAPPEN(...)) recovery_code();
|
||||
*/
|
||||
#define CANT_HAPPEN(expr) ((expr) ? oops(#expr, __FILE__, __LINE__) : 0)
|
||||
extern int oops(char *, char *, int);
|
||||
|
||||
/* return codes from command routines */
|
||||
#define RET_OK 0 /* command completed sucessfully */
|
||||
|
|
|
@ -307,7 +307,7 @@ extern int has_helpful_engineer(coord x, coord y, natid cn);
|
|||
/* log.c */
|
||||
extern void loginit(char *);
|
||||
extern void logerror(char *, ...) ATTRIBUTE((format (printf, 1, 2)));
|
||||
extern int oops(char *, char *, int);
|
||||
/* more in misc.h */
|
||||
/* maps.c */
|
||||
extern int draw_map(int, s_char, int, struct nstr_sect *);
|
||||
extern int unit_map(int, int, struct nstr_sect *, s_char *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue