summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/bg_lib.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/bg_lib.h b/src/game/bg_lib.h
index b872709a..63f0b537 100644
--- a/src/game/bg_lib.h
+++ b/src/game/bg_lib.h
@@ -79,6 +79,10 @@ typedef unsigned long uint32_t;
#define isxupper(c) (isdigit(c) || (c >= 'A' && c <= 'F'))
// Misc functions
+#define assert( expr )\
+ if( !( expr ) )\
+ Com_Error( ERR_DROP, "%s:%d: Assertion `%s' failed",\
+ __FILE__, __LINE__, #expr )
typedef int cmp_t( const void *, const void * );
void qsort( void *a, size_t n, size_t es, cmp_t *cmp );
void srand( unsigned seed );