Mercurial > repo
view src/ploki/xmalloc.h @ 5829:a062ac5f3fc0
<oerjan> addquote <Jafet> Some people, when confronted with a problem, think "I know, I\'ll use the Banach-Tarski theorem."
author | HackBot |
---|---|
date | Sat, 11 Jul 2015 03:47:27 +0000 |
parents | ac0403686959 |
children |
line wrap: on
line source
#ifndef XMALLOC_H_ #define XMALLOC_H_ #include "config.h" #include <stddef.h> void xend(void); #if DEBUG_P void *xmalloc(size_t, size_t, const char *, unsigned); void *xrealloc(void *, size_t, const char *, unsigned); #define xmalloc(n, m) xmalloc(n, m, __FILE__, __LINE__) #define xrealloc(p, n) xrealloc(p, n, __FILE__, __LINE__) #else void *xmalloc(size_t, size_t); void *xrealloc(void *, size_t); #endif void xfree(void *); #endif /* XMALLOC_H_ */