Macros for error message generation and controlled termination.
More...
#include <errno.h>
#include <float.h>
#include <limits.h>
#include <mutils/platform.h>
Go to the source code of this file.
|
#define | panic(err, msg, func, src) |
|
#define | panicn(err, msg, func, src) |
|
|
DLLSPEC void | hnb_panic (int err, const char *msg, const char *func, const char *src) |
|
- Id
- errors.h,v 1.6 2004/01/30 22:54:06 rauch Exp
- Author
- Kevin P. Rauch
#define panic |
( |
|
err, |
|
|
|
msg, |
|
|
|
func, |
|
|
|
src |
|
) |
| |
Value:do { \
if (err) hnb_panic(errno, msg, func, src); \
} while (0)
#define panicn |
( |
|
err, |
|
|
|
msg, |
|
|
|
func, |
|
|
|
src |
|
) |
| |
Value:do { \
int error=err; \
if (error) hnb_panic(error, msg, func, src); \
} while (0)