diff options
author | Chris Apers | 2006-09-17 09:46:06 +0000 |
---|---|---|
committer | Chris Apers | 2006-09-17 09:46:06 +0000 |
commit | 42dd017faf6a34ad7747c9d4ab4985576aa50546 (patch) | |
tree | 7e95c53cd1778d2f5f166e422f8844e81311a665 /backends/platform/PalmOS/Src/missing/stdlib.h | |
parent | 24f55e47e16c0660616cb9cb0bc8d0f0fd11f445 (diff) | |
download | scummvm-rg350-42dd017faf6a34ad7747c9d4ab4985576aa50546.tar.gz scummvm-rg350-42dd017faf6a34ad7747c9d4ab4985576aa50546.tar.bz2 scummvm-rg350-42dd017faf6a34ad7747c9d4ab4985576aa50546.zip |
Added option to trace memory allocation
svn-id: r23904
Diffstat (limited to 'backends/platform/PalmOS/Src/missing/stdlib.h')
-rw-r--r-- | backends/platform/PalmOS/Src/missing/stdlib.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/backends/platform/PalmOS/Src/missing/stdlib.h b/backends/platform/PalmOS/Src/missing/stdlib.h index 8b1c959c01..95e65b3232 100644 --- a/backends/platform/PalmOS/Src/missing/stdlib.h +++ b/backends/platform/PalmOS/Src/missing/stdlib.h @@ -36,12 +36,17 @@ extern "C" { #endif /* malloc stuff */ -#if defined(COMPILE_ZODIAC) -# define malloc MemPtrNew -#elif defined(COMPILE_OS5) && defined(PALMOS_ARM) +#ifdef STDLIB_TRACE_MEMORY # define malloc __malloc + extern UInt32 __stdlib_trace_memory; #else -# define malloc MemGluePtrNew +# if defined(COMPILE_ZODIAC) +# define malloc MemPtrNew +# elif defined(COMPILE_OS5) && defined(PALMOS_ARM) +# define malloc __malloc +# else +# define malloc MemGluePtrNew +# endif #endif /* custom exit (true exit !) */ |