equal
deleted
inserted
replaced
205 #undef DEBUG |
205 #undef DEBUG |
206 #else |
206 #else |
207 #define strcasecmp stricmp |
207 #define strcasecmp stricmp |
208 #define strncasecmp strnicmp |
208 #define strncasecmp strnicmp |
209 #endif |
209 #endif |
|
210 |
|
211 void SetExceptionString(const char* s, ...); |
|
212 |
|
213 #if defined(NDEBUG) && defined(WITH_ASSERT) |
|
214 #undef assert |
|
215 #define assert(expression) if (!(expression)) { SetExceptionString("Assertion failed at %s:%d: %s", __FILE__, __LINE__, #expression); *(byte*)0 = 0; } |
|
216 #endif |
210 #endif /* defined(_MSC_VER) */ |
217 #endif /* defined(_MSC_VER) */ |
211 |
218 |
212 #if defined(WINCE) |
219 #if defined(WINCE) |
213 #define strdup _strdup |
220 #define strdup _strdup |
214 #endif /* WINCE */ |
221 #endif /* WINCE */ |