mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +00:00
Oops. Revert the *alloc wrapping to catch them being called with bad values.
This was meant for debugging only. git-svn-id: https://svn.eduke32.com/eduke32@2109 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
a67af55153
commit
e18ef2ccc8
1 changed files with 3 additions and 3 deletions
|
@ -436,9 +436,9 @@ static inline uint16_t system_15bit_rand(void) { return ((uint16_t)rand())&0x7ff
|
|||
# define Bstrdup nedstrdup
|
||||
# define Bmemalign nedmemalign
|
||||
# else
|
||||
# define Bmalloc(x) ({if (x<=0) *(int *)123=234; malloc(x);})
|
||||
# define Bcalloc(x,y) ({if (x<=0||y<=0) *(int *)123=234; calloc(x,y);})
|
||||
# define Brealloc(p,x) ({if (x<=0) *(int *)123=234; realloc(p,x);})
|
||||
# define Bmalloc malloc
|
||||
# define Bcalloc calloc
|
||||
# define Brealloc realloc
|
||||
# define Bfree free
|
||||
# define Bstrdup strdup
|
||||
# define Bmemalign memalign
|
||||
|
|
Loading…
Reference in a new issue