memory fixes

This commit is contained in:
ed
2025-02-10 12:00:39 -05:00
parent a54d309fbf
commit 632bc6d47f
9 changed files with 82 additions and 59 deletions
+9 -6
View File
@@ -4,9 +4,11 @@
#include "metadesk.c"
// This program expects to be run from the build directory (where it would be after being built)
#define path_examples "../examples"
#define path_intro path_examples "/intro"
#define path_hello_world_medesk path_intro "/hello_world.mdesk"
#define path_examples "../examples"
#define path_intro path_examples "/intro"
#define path_hello_world_mdesk path_intro "/hello_world.mdesk"
#define text str8_lit
int main()
{
@@ -14,9 +16,10 @@ int main()
ctx.os_ctx.enable_large_pages = true;
init(& ctx);
printf("metadesk: got past init!");
// deinit(& ctx);
Arena* arena = arena_alloc();
String8 hello_world_mdesk = os_data_from_file_path(arena, text(path_hello_world_mdesk));
deinit(& ctx);
}