mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
Fix NO_ALIGNED_MALLOC to actually work and not transpose the parameters. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@5729 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
584b748897
commit
764336bdea
1 changed files with 3 additions and 3 deletions
|
@ -987,9 +987,9 @@ FORCE_INLINE void *xaligned_malloc(const bsize_t alignment, const bsize_t size)
|
|||
# define Xcalloc(nmemb, size) (EDUKE32_PRE_XALLLOC, xcalloc(nmemb, size))
|
||||
# define Xrealloc(ptr, size) (EDUKE32_PRE_XALLLOC, xrealloc(ptr, size))
|
||||
# if !defined NO_ALIGNED_MALLOC
|
||||
# define Xaligned_alloc(size, alignment) (EDUKE32_PRE_XALLLOC, xaligned_malloc(size, alignment))
|
||||
# define Xaligned_alloc(alignment, size) (EDUKE32_PRE_XALLLOC, xaligned_malloc(size, alignment))
|
||||
# else
|
||||
# define Xaligned_alloc(size, alignment) Xmalloc(size)
|
||||
# define Xaligned_alloc(alignment, size) Xmalloc(size)
|
||||
# endif
|
||||
# define Bexit(status) do { initprintf("exit(%d) at %s:%d in %s()\n", status, __FILE__, __LINE__, EDUKE32_FUNCTION); exit(status); } while (0)
|
||||
#else
|
||||
|
@ -1000,7 +1000,7 @@ FORCE_INLINE void *xaligned_malloc(const bsize_t alignment, const bsize_t size)
|
|||
# if !defined NO_ALIGNED_MALLOC
|
||||
# define Xaligned_alloc xaligned_malloc
|
||||
# else
|
||||
# define Xaligned_alloc(size, alignment) Xmalloc(size)
|
||||
# define Xaligned_alloc(alignment, size) Xmalloc(size)
|
||||
# endif
|
||||
# define Bexit exit
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue