diff options
Diffstat (limited to 'lib/mm/dbg_malloc.h')
-rw-r--r-- | lib/mm/dbg_malloc.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/mm/dbg_malloc.h b/lib/mm/dbg_malloc.h index be27f501..a4b016c1 100644 --- a/lib/mm/dbg_malloc.h +++ b/lib/mm/dbg_malloc.h @@ -18,15 +18,15 @@ void *realloc_aux(void *p, unsigned int s, const char *file, int line); int dump_memory(void); void bounds_check(void); -#define dbg_malloc(s) malloc_aux((s), __FILE__, __LINE__) -#define dbg_free(p) free_aux(p) -#define dbg_realloc(p, s) realloc_aux(p, s, __FILE__, __LINE__) +# define dbg_malloc(s) malloc_aux((s), __FILE__, __LINE__) +# define dbg_free(p) free_aux(p) +# define dbg_realloc(p, s) realloc_aux(p, s, __FILE__, __LINE__) #else -#define dbg_malloc(s) malloc(s) -#define dbg_free(p) free(p) -#define dbg_realloc(p, s) realloc(p, s) -#define dump_memory() -#define bounds_check() +# define dbg_malloc(s) malloc(s) +# define dbg_free(p) free(p) +# define dbg_realloc(p, s) realloc(p, s) +# define dump_memory() +# define bounds_check() #endif static inline char *dbg_strdup(const char *str) |