In release builds, #define Xaligned_alloc as xaligned_malloc.

Otherwise, the out-of-memory handler is not called in case of failure.

git-svn-id: https://svn.eduke32.com/eduke32@4736 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2014-11-07 22:07:13 +00:00
parent 205b8a7677
commit b3f55d014e

View file

@ -934,11 +934,7 @@ static inline void *xaligned_malloc(const bsize_t alignment, const bsize_t size)
# define Xmalloc xmalloc
# define Xcalloc xcalloc
# define Xrealloc xrealloc
#ifdef _WIN32
# define Xaligned_alloc(alignment, size) _aligned_malloc(size, alignment)
#else
# define Xaligned_alloc(alignment, size) memalign(alignment, size)
#endif
# define Xaligned_alloc xaligned_malloc
# define Bexit exit
#endif