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:
helixhorned 2011-11-10 21:47:42 +00:00
parent a67af55153
commit e18ef2ccc8

View file

@ -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