mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +00:00
Tweak EDUKE32_PRE_XALLOC thing used when DEBUGGINGAIDS is defined
git-svn-id: https://svn.eduke32.com/eduke32@7661 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
badf4eab6d
commit
0becd69e91
1 changed files with 8 additions and 11 deletions
|
@ -1307,20 +1307,17 @@ static FORCE_INLINE void *xaligned_alloc(const bsize_t alignment, const bsize_t
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DEBUGGINGAIDS
|
#ifdef DEBUGGINGAIDS
|
||||||
# define EDUKE32_PRE_XALLLOC xalloc_set_location(__LINE__, __FILE__, EDUKE32_FUNCTION)
|
# define EDUKE32_PRE_XALLOC xalloc_set_location(__LINE__, __FILE__, EDUKE32_FUNCTION),
|
||||||
# define Xstrdup(s) (EDUKE32_PRE_XALLLOC, xstrdup(s))
|
|
||||||
# define Xmalloc(size) (EDUKE32_PRE_XALLLOC, xmalloc(size))
|
|
||||||
# define Xcalloc(nmemb, size) (EDUKE32_PRE_XALLLOC, xcalloc(nmemb, size))
|
|
||||||
# define Xrealloc(ptr, size) (EDUKE32_PRE_XALLLOC, xrealloc(ptr, size))
|
|
||||||
# define Xaligned_alloc(alignment, size) (EDUKE32_PRE_XALLLOC, xaligned_alloc(alignment, size))
|
|
||||||
#else
|
#else
|
||||||
# define Xstrdup xstrdup
|
# define EDUKE32_PRE_XALLOC
|
||||||
# define Xmalloc xmalloc
|
|
||||||
# define Xcalloc xcalloc
|
|
||||||
# define Xrealloc xrealloc
|
|
||||||
# define Xaligned_alloc xaligned_alloc
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define Xstrdup(s) (EDUKE32_PRE_XALLOC xstrdup(s))
|
||||||
|
#define Xmalloc(size) (EDUKE32_PRE_XALLOC xmalloc(size))
|
||||||
|
#define Xcalloc(nmemb, size) (EDUKE32_PRE_XALLOC xcalloc(nmemb, size))
|
||||||
|
#define Xrealloc(ptr, size) (EDUKE32_PRE_XALLOC xrealloc(ptr, size))
|
||||||
|
#define Xaligned_alloc(alignment, size) (EDUKE32_PRE_XALLOC xaligned_alloc(alignment, size))
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue