Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

fail.h File Reference


Detailed Description

Header file for asserts equivalent.

>

#include <stdarg.h>
#include <hiker/config.h>

Go to the source code of this file.

Defines

#define ALP_FAIL_FATAL_IF(cond, msg,)   do { if (cond) alp_fail_raise(__FILE__, __LINE__, #cond, msg, ## __VA_ARGS__); } while (0)
#define ALP_FAIL_NON_FATAL_IF(cond, msg,)   do { if (cond) alp_fail_raise(__FILE__, __LINE__, #cond, msg, ## __VA_ARGS__); } while (0)

Functions

void alp_fail_raise (const char *file, int line, const char *cond, const char *fmt,...)


Define Documentation

#define ALP_FAIL_FATAL_IF cond,
msg   )     do { if (cond) alp_fail_raise(__FILE__, __LINE__, #cond, msg, ## __VA_ARGS__); } while (0)
 

#define ALP_FAIL_NON_FATAL_IF cond,
msg   )     do { if (cond) alp_fail_raise(__FILE__, __LINE__, #cond, msg, ## __VA_ARGS__); } while (0)
 


Function Documentation

void alp_fail_raise const char *  file,
int  line,
const char *  cond,
const char *  fmt,
  ...
 


Generated on Sat Dec 16 20:29:48 2006 for hiker-0.9 by  doxygen 1.4.4