mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
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:
parent
205b8a7677
commit
b3f55d014e
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue