Skip to content

Commit fca4cdc

Browse files
committed
Fix arena allocator for OPCODE
1 parent 63b9140 commit fca4cdc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Externals/OPCODE/pch.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
#include "pch.hpp"
2+
3+
#ifdef USE_ARENA_ALLOCATOR
4+
static const u32 s_arena_size = (128 + 16) * 1024 * 1024;
5+
static char s_fake_array[s_arena_size];
6+
doug_lea_allocator g_collision_allocator(s_fake_array, s_arena_size, "opcode");
7+
#endif // #ifdef USE_ARENA_ALLOCATOR

0 commit comments

Comments
 (0)