File: sljitAllocator.cpp

package info (click to toggle)
ares 147%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 35,244 kB
  • sloc: cpp: 334,263; ansic: 98,696; sh: 123; makefile: 31
file content (9 lines) | stat: -rw-r--r-- 276 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
#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);
}