define SYS_CHECKMEM macro to ease memory allocation failure detection
cmd.c:
	loads of whitespace
This commit is contained in:
Bill Currie 2002-03-21 19:47:31 +00:00
parent 388ff7b597
commit 6f1b68aeb4
2 changed files with 433 additions and 370 deletions

View file

@ -89,4 +89,10 @@ void Sys_PageIn (void *ptr, int size);
//
void Sys_DebugLog(const char *file, const char *fmt, ...) __attribute__((format(printf,2,3)));
#define SYS_CHECKMEM(x) \
do { \
if (!(x)) \
Sys_Error ("%s: Failed to reallocate memory.", __func__); \
} while (0)
#endif // __sys_h

File diff suppressed because it is too large Load diff