Previous 199869 Revisions Next

r21304 Friday 22nd February, 2013 at 08:16:11 UTC by Oliver Stöneberg
fill allocated memory with 0xDD pattern to make it easier to spot uninitialized memory in a debug build (nw)
[src/emu]emualloc.c

trunk/src/emu/emualloc.c
r21303r21304
151151   memory_entry::allocate(size, result, file, line);
152152
153153#ifdef MAME_DEBUG
154   // randomize the memory
155   rand_memory(result, size);
154   memset(result, 0xdd, size);
156155#endif
157156
158157   return result;
r21303r21304
176175   memory_entry::allocate(size, result, file, line);
177176
178177#ifdef MAME_DEBUG
179   // randomize the memory
180   rand_memory(result, size);
178   memset(result, 0xdd, size);
181179#endif
182180
183181   return result;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team