blob: 546b004ebf62e84932f6760110c3a430a6cfea82 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#ifndef MEM_H
#define MEM_H
#define MALLOC(s) _xmalloc((s), __FILE__, __LINE__)
#define REALLOC(p, s) _xrealloc((p), (s), __FILE__, __LINE__)
void *_xmalloc(size_t s, const char *file, int line);
void *_xrealloc(void *ptr, size_t s, const char *file, int line);
#endif /* MEM_H */
|