(oops): Move declaration to misc.h, to make CANT_HAPPEN() usable

with just misc.h included.
This commit is contained in:
Markus Armbruster 2005-12-05 22:13:35 +00:00
parent 3a18d0b986
commit 320322cda9
2 changed files with 2 additions and 1 deletions

View file

@ -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 */