Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
std-memory.h
Go to the documentation of this file.
1#ifndef STD_MEMORY_H
2#define STD_MEMORY_H
3
5
6namespace JGadget {
7template <typename T>
8struct TAllocator {
9 T* allocate(u32 count, void *param_2) {
10 return AllocateRaw(count * sizeof(T));
11 }
12
13 T* AllocateRaw(u32 size) {
14 return (T*)operator new(size);
15 }
16
17 void deallocate(T* mem, u32 size) {
19 }
20
22 delete mem;
23 }
24
25 void destroy(T* p) {
26 JUT_ASSERT(68, p!=0);
27 }
28
29 /* 0x0 */ u8 mAllocator;
30};
31}
32
33#endif /* STD_MEMORY_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:79
p
Definition e_acos.c:98
static const double T[]
Definition k_tan.c:106
Definition functionvalue.cpp:19
Definition std-memory.h:8
T * AllocateRaw(u32 size)
Definition std-memory.h:13
void deallocate(T *mem, u32 size)
Definition std-memory.h:17
T * allocate(u32 count, void *param_2)
Definition std-memory.h:9
void destroy(T *p)
Definition std-memory.h:25
void DeallocateRaw(T *mem)
Definition std-memory.h:21
u8 mAllocator
Definition std-memory.h:29
unsigned long u32
Definition types.h:10
unsigned char u8
Definition types.h:8