HNBody  Version 1.0.10
Macros | Functions
errors.h File Reference

Macros for error message generation and controlled termination. More...

#include <errno.h>
#include <float.h>
#include <limits.h>
#include <mutils/platform.h>
Include dependency graph for errors.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define panic(err, msg, func, src)
 
#define panicn(err, msg, func, src)
 

Functions

DLLSPEC void hnb_panic (int err, const char *msg, const char *func, const char *src)
 

Detailed Description

Id
errors.h,v 1.6 2004/01/30 22:54:06 rauch Exp
Author
Kevin P. Rauch

Macro Definition Documentation

#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)