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