mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +00:00
Add Bassert to compatibility macros/functions, currently only an assert wrapper.
git-svn-id: https://svn.eduke32.com/eduke32@2546 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ebaf65951b
commit
2cc9f751cd
2 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -47,6 +47,11 @@
|
|||
|
||||
#ifndef __compat_h_macrodef__
|
||||
|
||||
void Bassert(int expr)
|
||||
{
|
||||
assert(expr);
|
||||
}
|
||||
|
||||
int32_t Brand(void)
|
||||
{
|
||||
return rand();
|
||||
|
|
Loading…
Reference in a new issue