ARB
|
#include <stdio.h>
#include <attributes.h>
Go to the source code of this file.
Macros | |
#define | outOfMemory() def_outOfMemory(__FILE__, __LINE__) |
#define | assert(c) do { static int assCnt; assCnt++; if (!(c)) def_assert(#c, __FILE__, __LINE__, assCnt); } while (0) |
Typedefs | |
typedef char * | str |
typedef const char * | cstr |
Functions | |
void | error (cstr message) |
void | errorf (cstr format,...) __ATTR__FORMAT(1) |
void | warning (cstr message) |
void | warningf (cstr format,...) __ATTR__FORMAT(1) |
void | def_outOfMemory (cstr source, int lineno) |
void | def_assert (cstr whatFailed, cstr source, int lineno, int cnt) |
#define outOfMemory | ( | void | ) | def_outOfMemory(__FILE__, __LINE__) |
Definition at line 14 of file defines.h.
Referenced by allocRNS(), dupRNS(), initBaseSpecificProbs(), initFrand(), and newSpreading().
#define assert | ( | c | ) | do { static int assCnt; assCnt++; if (!(c)) def_assert(#c, __FILE__, __LINE__, assCnt); } while (0) |
void errorf | ( | cstr | format, |
... | |||
) |
Definition at line 14 of file defines.c.
References error(), MAXERRLEN, va_end(), and va_start().
Referenced by def_assert(), and def_outOfMemory().
void warning | ( | cstr | message | ) |
Definition at line 11 of file defines.c.
Referenced by warningf().
void warningf | ( | cstr | format, |
... | |||
) |