1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- #ifndef DETOURALLOCATOR_H
- #define DETOURALLOCATOR_H
- enum dtAllocHint
- {
- DT_ALLOC_PERM,
- DT_ALLOC_TEMP
- };
- typedef void* (dtAllocFunc)(int size, dtAllocHint hint);
- typedef void (dtFreeFunc)(void* ptr);
- void dtAllocSetCustom(dtAllocFunc *allocFunc, dtFreeFunc *freeFunc);
- void* dtAlloc(int size, dtAllocHint hint);
- void dtFree(void* ptr);
- #endif
|