Subversion Repositories Games.Carmageddon

Rev

Rev 1 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 pmbaty 1
#ifndef _DRMEM_H_
2
#define _DRMEM_H_
3
 
4
#include "dr_types.h"
5
 
6
extern br_allocator gAllocator;
7
extern int gNon_fatal_allocation_errors;
8
extern char* gMem_names[247];
9
extern br_resource_class gStainless_classes[118];
10
 
11
void SetNonFatalAllocationErrors(void);
12
 
13
void ResetNonFatalAllocationErrors(void);
14
 
15
int AllocationErrorsAreFatal(void);
16
 
17
void MAMSInitMem(void);
18
 
19
void PrintMemoryDump(int pFlags, char* pTitle);
20
 
21
void* DRStdlibAllocate(br_size_t size, br_uint_8 type);
22
 
23
void DRStdlibFree(void* mem);
24
 
25
br_size_t DRStdlibInquire(br_uint_8 type);
26
 
27
br_uint_32 Claim4ByteAlignment(br_uint_8 type);
28
 
29
void InstallDRMemCalls(void);
30
 
31
void MAMSUnlock(void** pPtr);
32
 
33
void MAMSLock(void** pPtr);
34
 
35
void CreateStainlessClasses(void);
36
 
37
void CheckMemory(void);
38
 
39
#endif