(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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue