diff --git a/polymer/eduke32/build/include/compat.h b/polymer/eduke32/build/include/compat.h index 48f2e7a36..945c309ed 100644 --- a/polymer/eduke32/build/include/compat.h +++ b/polymer/eduke32/build/include/compat.h @@ -443,6 +443,7 @@ static inline uint16_t system_15bit_rand(void) { return ((uint16_t)rand())&0x7ff #endif #ifdef __compat_h_macrodef__ +# define Bassert assert # define Brand rand # define Balloca alloca # ifdef NEDMALLOC @@ -550,6 +551,7 @@ static inline uint16_t system_15bit_rand(void) { return ((uint16_t)rand())&0x7ff #else +void Bassert(int); int32_t Brand(void); void *Bmalloc(bsize_t size); void Bfree(void *ptr); diff --git a/polymer/eduke32/build/src/compat.c b/polymer/eduke32/build/src/compat.c index 90205f060..1987bf8c6 100644 --- a/polymer/eduke32/build/src/compat.c +++ b/polymer/eduke32/build/src/compat.c @@ -47,6 +47,11 @@ #ifndef __compat_h_macrodef__ +void Bassert(int expr) +{ + assert(expr); +} + int32_t Brand(void) { return rand();