150 |
/** ------------------------------------------ Simple Assert Exception macro */ |
/** ------------------------------------------ Simple Assert Exception macro */ |
151 |
|
|
152 |
|
|
153 |
#define ASSERT(e) if(!(e)) { error("AssertException: at %s:%d\naborting..\n", \ |
#define ASSERT(e) if(!(e)) { log("AssertException: at %s:%d\naborting..\n", \ |
154 |
__FILE__, __LINE__); abort(); } |
__FILE__, __LINE__); abort(); } |
155 |
|
|
156 |
|
|
460 |
/* ------------------------------------------------------- Public prototypes */ |
/* ------------------------------------------------------- Public prototypes */ |
461 |
|
|
462 |
|
|
|
void error(const char *, ...); |
|
463 |
char *trim(char *); |
char *trim(char *); |
464 |
char *ltrim(char *); |
char *ltrim(char *); |
465 |
char *rtrim(char *); |
char *rtrim(char *); |