Compare commits

..

3 Commits

Author SHA1 Message Date
ed43a0f286 Use GB macro to define arena size 2024-08-23 21:52:12 +01:00
bf1aa69cf5 Update wapp submodule 2024-08-23 21:51:57 +01:00
8b8855d648 Reformat 2024-08-23 21:47:01 +01:00
3 changed files with 4 additions and 3 deletions

@ -1 +1 @@
Subproject commit 8ed372d9388b65dd4d3651f8850a7a1f08d984de
Subproject commit 8b6fb23bac98ff4b67219f4c020369cc0b0dce7d

View File

@ -1,6 +1,7 @@
#include "img.h"
#include "mem_arena.h"
#include "mem_utils.h"
#include "misc_utils.h"
#include "obj.h"
#include "render.h"
#include "shaders.h"
@ -21,8 +22,7 @@ enum {
int main(void) {
Arena *arena = NULL;
if (!wapp_mem_arena_init(&arena, 10ul * 1024ul * 1024ul * 1024ul,
WAPP_MEM_ALLOC_RESERVE, false)) {
if (!wapp_mem_arena_init(&arena, GB(10), WAPP_MEM_ALLOC_RESERVE, false)) {
return TINY_EXIT_ARENA_INIT_FAILED;
}

View File

@ -2,6 +2,7 @@
#define UTILS_H
#include "aliases.h"
#define swap(T, v0, v1) \
do { \
T tmp = v0; \