Pyrogenesis  trunk
Macros | Functions
wdbg_heap.cpp File Reference
#include "precompiled.h"
#include "lib/sysdep/os/win/wdbg_heap.h"
#include "lib/sysdep/os/win/win.h"
#include <crtdbg.h>
#include <excpt.h>
#include "lib/external_libraries/dbghelp.h"
#include "lib/sysdep/cpu.h"
#include "lib/sysdep/os/win/winit.h"
#include "lib/sysdep/os/win/wdbg.h"
#include "lib/sysdep/os/win/wdbg_sym.h"
Include dependency graph for wdbg_heap.cpp:

Macros

#define ENABLE_LEAK_INSTRUMENTATION   0
 

Functions

 WINIT_REGISTER_EARLY_INIT2 (wdbg_heap_Init)
 
 WINIT_REGISTER_LATE_SHUTDOWN2 (wdbg_heap_Shutdown)
 
void wdbg_heap_Enable (bool enable)
 enable or disable manual and automatic heap validity checking. More...
 
void wdbg_heap_Validate ()
 check heap integrity. More...
 
intptr_t wdbg_heap_NumberOfAllocations ()
 
static Status wdbg_heap_Init ()
 
static Status wdbg_heap_Shutdown ()
 

Macro Definition Documentation

◆ ENABLE_LEAK_INSTRUMENTATION

#define ENABLE_LEAK_INSTRUMENTATION   0

Function Documentation

◆ wdbg_heap_Enable()

void wdbg_heap_Enable ( bool  )

enable or disable manual and automatic heap validity checking.

(enabled by default during critical_init.)

◆ wdbg_heap_Init()

static Status wdbg_heap_Init ( )
static

◆ wdbg_heap_NumberOfAllocations()

intptr_t wdbg_heap_NumberOfAllocations ( )
Returns
the total number of alloc and realloc operations thus far. used by the in-game profiler.

◆ wdbg_heap_Shutdown()

static Status wdbg_heap_Shutdown ( )
static

◆ wdbg_heap_Validate()

void wdbg_heap_Validate ( )

check heap integrity.

errors are reported by the CRT or via debug_DisplayError. no effect if called between wdbg_heap_Enable(false) and the next wdbg_heap_Enable(true).

◆ WINIT_REGISTER_EARLY_INIT2()

WINIT_REGISTER_EARLY_INIT2 ( wdbg_heap_Init  )

◆ WINIT_REGISTER_LATE_SHUTDOWN2()

WINIT_REGISTER_LATE_SHUTDOWN2 ( wdbg_heap_Shutdown  )