Game Development Community

What Is Debug_guard For?

by Brett Fattori · in Torque Game Engine · 01/07/2004 (7:09 pm) · 2 replies

I see DEBUG_GUARD in {platform}Memory.cc but have no idea what it's for. Should it be defined when building Torque in Debug?

Note: Seems that with DEBUG_GUARD defined, paths don't compile.

- Brett

#1
01/08/2004 (8:29 am)
Isn't it the define to have memory allocations filled with hexadecimal patterns that looks like ASCII (ie deadbeef) to help find memory alloc errors, like buffer overruns, etc. ?-
#2
01/08/2004 (11:49 am)
As I recall, it also inserts blocks of known values before and after allocated buffers, then checks them on a regular basis to see if there has been an overrun of allocated memory.