From 42dd017faf6a34ad7747c9d4ab4985576aa50546 Mon Sep 17 00:00:00 2001 From: Chris Apers Date: Sun, 17 Sep 2006 09:46:06 +0000 Subject: Added option to trace memory allocation svn-id: r23904 --- backends/platform/PalmOS/Src/missing/stdlib.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'backends/platform/PalmOS/Src/missing/stdlib.h') 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 !) */ -- cgit v1.2.3