BizHawk/waterbox/ares64/ares/thirdparty/sljitAllocator.cpp

10 lines
266 B
C++

#include <sljit.h>
#include <nall/platform.hpp>
#include <nall/bump-allocator.hpp>
auto sljit_nall_malloc_exec(sljit_uw size, void* exec_allocator_data) -> void* {
auto allocator = (nall::bump_allocator*)exec_allocator_data;
return allocator->acquire(size);
}