Kannel: Open Source WAP and SMS gateway  $Revision: 5037 $
gwassert.h File Reference
#include "log.h"

Go to the source code of this file.

Macros

#define gw_assert(expr)
 
#define gw_assert_place(expr, file, lineno, func)
 

Macro Definition Documentation

#define gw_assert (   expr)
Value:
((void) ((expr) ? 0 : \
(panic(0, "%s:%ld: %s: Assertion `%s' failed.", \
__FILE__, (long) __LINE__, __func__, #expr), 0)))
#define panic
Definition: log.h:87

Definition at line 86 of file gwassert.h.

#define gw_assert_place (   expr,
  file,
  lineno,
  func 
)
Value:
((void) ((expr) ? 0 : \
(panic(0, "%s:%ld: %s: Assertion `%s' failed. " \
"(Called from %s:%ld:%s.)", \
__FILE__, (long) __LINE__, __func__, \
#expr, (file), (long) (lineno), (func)), 0)))
FILE * file
Definition: log.c:133
#define panic
Definition: log.h:87

Definition at line 90 of file gwassert.h.

Referenced by seems_valid_real().

See file LICENSE for details about the license agreement for using, modifying, copying or deriving work from this software.