Reformat
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
#define TEMP_BUF_SIZE (40 + sizeof(i32) * 8)
|
#define TEMP_BUF_SIZE (40 + sizeof(i32) * 8)
|
||||||
|
|
||||||
wapp_intern u8 temp_buf[TEMP_BUF_SIZE] = {0};
|
wapp_intern u8 temp_buf[TEMP_BUF_SIZE] = {0};
|
||||||
wapp_intern Allocator temp_allocator = {0};
|
wapp_intern Allocator temp_allocator = {0};
|
||||||
|
|
||||||
TestFuncResult test_arena_allocator(void) {
|
TestFuncResult test_arena_allocator(void) {
|
||||||
Allocator allocator = wapp_mem_arena_allocator_init(4096);
|
Allocator allocator = wapp_mem_arena_allocator_init(4096);
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
#define TEMP_BUF_SIZE (40 + sizeof(i32) * 8)
|
#define TEMP_BUF_SIZE (40 + sizeof(i32) * 8)
|
||||||
|
|
||||||
wapp_intern u8 temp_buf[TEMP_BUF_SIZE] = {};
|
wapp_intern u8 temp_buf[TEMP_BUF_SIZE] = {};
|
||||||
wapp_intern Allocator temp_allocator = {};
|
wapp_intern Allocator temp_allocator = {};
|
||||||
|
|
||||||
TestFuncResult test_arena_allocator(void) {
|
TestFuncResult test_arena_allocator(void) {
|
||||||
Allocator allocator = wapp_mem_arena_allocator_init(4096);
|
Allocator allocator = wapp_mem_arena_allocator_init(4096);
|
||||||
|
|||||||
@@ -8,12 +8,12 @@
|
|||||||
// allocation are aligned to power of 2 boundaries, the number of i32 values needed is hardcoded.
|
// allocation are aligned to power of 2 boundaries, the number of i32 values needed is hardcoded.
|
||||||
#define TEMP_BUF_SIZE (40 + sizeof(i32) * 8)
|
#define TEMP_BUF_SIZE (40 + sizeof(i32) * 8)
|
||||||
|
|
||||||
wapp_intern Arena *arena = NULL;
|
wapp_intern Arena *arena = NULL;
|
||||||
wapp_intern i32 count = 20;
|
wapp_intern i32 count = 20;
|
||||||
wapp_intern i32 *array = NULL;
|
wapp_intern i32 *array = NULL;
|
||||||
wapp_intern Arena *buf_arena = NULL;
|
wapp_intern Arena *buf_arena = NULL;
|
||||||
wapp_intern u8 buf[ARENA_BUF_SIZE] = {0};
|
wapp_intern u8 buf[ARENA_BUF_SIZE] = {0};
|
||||||
wapp_intern Arena *temp_arena = NULL;
|
wapp_intern Arena *temp_arena = NULL;
|
||||||
wapp_intern u8 temp_buf[TEMP_BUF_SIZE] = {0};
|
wapp_intern u8 temp_buf[TEMP_BUF_SIZE] = {0};
|
||||||
|
|
||||||
TestFuncResult test_arena_init_buffer(void) {
|
TestFuncResult test_arena_init_buffer(void) {
|
||||||
|
|||||||
@@ -8,12 +8,12 @@
|
|||||||
// allocation are aligned to power of 2 boundaries, the number of i32 values needed is hardcoded.
|
// allocation are aligned to power of 2 boundaries, the number of i32 values needed is hardcoded.
|
||||||
#define TEMP_BUF_SIZE (40 + sizeof(i32) * 8)
|
#define TEMP_BUF_SIZE (40 + sizeof(i32) * 8)
|
||||||
|
|
||||||
wapp_intern Arena *arena = NULL;
|
wapp_intern Arena *arena = NULL;
|
||||||
wapp_intern i32 count = 20;
|
wapp_intern i32 count = 20;
|
||||||
wapp_intern i32 *array = NULL;
|
wapp_intern i32 *array = NULL;
|
||||||
wapp_intern Arena *buf_arena = NULL;
|
wapp_intern Arena *buf_arena = NULL;
|
||||||
wapp_intern u8 buf[ARENA_BUF_SIZE] = {};
|
wapp_intern u8 buf[ARENA_BUF_SIZE] = {};
|
||||||
wapp_intern Arena *temp_arena = NULL;
|
wapp_intern Arena *temp_arena = NULL;
|
||||||
wapp_intern u8 temp_buf[TEMP_BUF_SIZE] = {};
|
wapp_intern u8 temp_buf[TEMP_BUF_SIZE] = {};
|
||||||
|
|
||||||
TestFuncResult test_arena_init_buffer(void) {
|
TestFuncResult test_arena_init_buffer(void) {
|
||||||
|
|||||||
Reference in New Issue
Block a user