mirror of
https://github.com/Ed94/metadesk.git
synced 2026-07-29 10:50:02 +00:00
memory fixes
This commit is contained in:
+9
-6
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user