2021-12-12 16:45:37 +09:00
|
|
|
#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;
|
2023-09-29 22:14:32 +09:00
|
|
|
return allocator->tryAcquire(size, false);
|
2021-12-12 16:45:37 +09:00
|
|
|
}
|