ares-openbsd/thirdparty/sljitAllocator.cpp

10 行
276 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->tryAcquire(size, false);
}