summaryrefslogtreecommitdiff
path: root/include/nw4r/g3d/platform/g3d_allocator.h
blob: f0d3516a957354d5ec52948e3f809e4ab9f4c517 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef NW4R_G3D_PLATFORM_ALLOCATOR_H
#define NW4R_G3D_PLATFORM_ALLOCATOR_H
#include <nw4r/types_nw4r.h>

#include "rvl/MEM.h" // IWYU pragma: export

namespace nw4r {
namespace g3d {
namespace detail {

inline void *AllocFromAllocator(MEMAllocator *pAllocator, u32 size) {
    return MEMAllocFromAllocator(pAllocator, size);
}
inline void FreeToAllocator(MEMAllocator *pAllocator, void *pBlock) {
    return MEMFreeToAllocator(pAllocator, pBlock);
}

} // namespace detail
} // namespace g3d
} // namespace nw4r

#endif