28 #include "copyright.h" 38 #define divRoundDown(n,s) ((n) / (s)) 39 #define divRoundUp(n,s) (((n) / (s)) + ((((n) % (s)) > 0) ? 1 : 0)) 50 typedef void (*VoidFunctionPtr) (
int arg);
51 typedef void (*VoidNoArgFunctionPtr) ();
61 extern void DebugInit (
const char *flags);
67 extern void DEBUG (
char flag,
const char *format, ...);
78 #define ASSERT(condition) \ 80 fprintf(stderr, "Assertion failed: line %d, file \"%s\"\n", \ 81 __LINE__, __FILE__); \ System-dependent interface.
void DEBUG(char flag, const char *format,...)
Print debug message.
Definition: utility.cc:65
void DebugInit(const char *flags)
Include interface that isolates us from the host machine system library. Requires definition of bool...
Definition: utility.cc:38
bool DebugIsEnabled(char flag)
Is this debug flag enabled?
Definition: utility.cc:49