My Project: dynamics.mod/NewtonDynamics/source/core/dgMemory.cpp File Reference

My Project

Classes | Macros | Functions
dgMemory.cpp File Reference
`#include "dgStdafx.h"`
`#include "dgList.h"`
`#include "dgDebug.h"`
`#include "dgMemory.h"`

## Classes

class | dgGlobalAllocator

## Macros

#define | DG_MEMORY_THREAD_SANITY_CHECK_LOCK()
#define | DG_MEMORY_THREAD_SANITY_CHECK_UNLOCK()

## Functions

void | dgSetGlobalAllocators (dgMemAlloc malloc, dgMemFree free)
dgInt32 | dgGetMemoryUsed ()
void *dgApi | dgMallocStack (size_t size)
void *dgApi | dgMallocAligned (size_t size, dgInt32 align)
void dgApi | dgFreeStack (void *const ptr)
void *dgApi | dgMalloc (size_t size, dgMemoryAllocator *const allocator)
void dgApi | dgFree (void *const ptr)

## Macro Definition Documentation

## § DG_MEMORY_THREAD_SANITY_CHECK_LOCK

#define DG_MEMORY_THREAD_SANITY_CHECK_LOCK | ( |  | ) |

## § DG_MEMORY_THREAD_SANITY_CHECK_UNLOCK

#define DG_MEMORY_THREAD_SANITY_CHECK_UNLOCK | ( |  | ) |

## Function Documentation

## § dgFree()

void dgApi dgFree | ( | void *const | ptr | ) |

## § dgFreeStack()

void dgApi dgFreeStack | ( | void *const | ptr | ) |

## § dgGetMemoryUsed()

dgInt32 dgGetMemoryUsed | ( |  | ) |

## § dgMalloc()

void* dgApi dgMalloc | ( | size_t | size,
|  | dgMemoryAllocator *const | allocator
| ) |  |

## § dgMallocAligned()

void* dgApi dgMallocAligned | ( | size_t | size,
|  | dgInt32 | align
| ) |  |

## § dgMallocStack()

void* dgApi dgMallocStack | ( | size_t | size | ) |

## § dgSetGlobalAllocators()

void dgSetGlobalAllocators | ( | dgMemAlloc | malloc,
|  | dgMemFree | free
| ) |  |