Itasca C++ Interface
Loading...
Searching...
No Matches
basememory.h File Reference

Comment point for memory allocation in all modules. More...

#include <stdlib.h>
#include "basedef.h"
#include <new>

Go to the source code of this file.

Namespaces

namespace  itasca
 namespace Itasca

Macros

#define NEW   new
#define NEWN(x)

Typedefs

using itasca::memory::MemoryCleanupFunction = void(*)()

Functions

void itasca::memory::initialize ()
void itasca::memory::shutdown ()
void * itasca::memory::imalloc (size_t s)
BASE_EXPORT void * itasca::memory::imalloc (size_t s, const char *file, uint32 line)
void itasca::memory::ifree (void *v)
bool itasca::memory::heapCheck (void *)
uint64 itasca::memory::getMemory ()
void itasca::memory::addCleanupFunction (MemoryCleanupFunction func)

Detailed Description

Comment point for memory allocation in all modules.

Defining ITASCA_MEMORY_CHECKING cases NEW to include file and line numbers in each use. Defining CRT_CHECKING in basememory.cpp will trigger leak detection and a report on shutdown.