diff options
author | 2010-01-08 08:24:22 +0000 | |
---|---|---|
committer | 2010-01-08 08:24:22 +0000 | |
commit | 8e261f62c81f01a13c812f98a79dc8c59bdaeaac (patch) | |
tree | 1bf019ed2fbaa120fc8ae861c4377b5cbda7db45 /src/emu/emualloc.h | |
parent | ab68710ce58d99c5275cdbbaefd212a346e819a5 (diff) |
Re-enabled malloc/free but routed them to the file+line versions.
Diffstat (limited to 'src/emu/emualloc.h')
-rw-r--r-- | src/emu/emualloc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/emualloc.h b/src/emu/emualloc.h index e4e799f317e..b1a1fdf26ff 100644 --- a/src/emu/emualloc.h +++ b/src/emu/emualloc.h @@ -154,10 +154,10 @@ private: #undef realloc #undef free -#define malloc(x) __error_use_auto_alloc_or_global_alloc_instead__ +#define malloc(x) malloc_file_line(x, __FILE__, __LINE__) #define calloc(x,y) __error_use_auto_alloc_clear_or_global_alloc_clear_instead__ #define realloc(x,y) __error_realloc_is_dangerous__ -#define free(x) __error_use_auto_free_or_global_free_instead__ +#define free(x) free_file_line(x, __FILE__, __LINE__) // pool allocation helpers #define pool_alloc(_pool, _type) (_pool).add_object(new(__FILE__, __LINE__) _type) |