mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +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 Bstrdup nedstrdup
|
||||||
# define Bmemalign nedmemalign
|
# define Bmemalign nedmemalign
|
||||||
# else
|
# else
|
||||||
# define Bmalloc(x) ({if (x<=0) *(int *)123=234; malloc(x);})
|
# define Bmalloc malloc
|
||||||
# define Bcalloc(x,y) ({if (x<=0||y<=0) *(int *)123=234; calloc(x,y);})
|
# define Bcalloc calloc
|
||||||
# define Brealloc(p,x) ({if (x<=0) *(int *)123=234; realloc(p,x);})
|
# define Brealloc realloc
|
||||||
# define Bfree free
|
# define Bfree free
|
||||||
# define Bstrdup strdup
|
# define Bstrdup strdup
|
||||||
# define Bmemalign memalign
|
# define Bmemalign memalign
|
||||||
|
|
Loading…
Reference in a new issue