ARB
Macros | Typedefs | Functions
defines.h File Reference
#include <stdio.h>
#include <attributes.h>
Include dependency graph for defines.h:
This graph shows which files directly or indirectly include this file:

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 charstr
 
typedef const charcstr
 

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)
 

Macro Definition Documentation

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

Definition at line 15 of file defines.h.

Typedef Documentation

typedef char* str

Definition at line 20 of file defines.h.

typedef const char* cstr

Definition at line 21 of file defines.h.

Function Documentation

void error ( cstr  message)

Definition at line 7 of file defines.c.

Referenced by errorf().

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,
  ... 
)

Definition at line 24 of file defines.c.

References MAXERRLEN, va_end(), va_start(), and warning().

void def_outOfMemory ( cstr  source,
int  lineno 
)

Definition at line 34 of file defines.c.

References errorf().

void def_assert ( cstr  whatFailed,
cstr  source,
int  lineno,
int  cnt 
)

Definition at line 37 of file defines.c.

References errorf().