Assign context in scope

This commit is contained in:
gingerBill
2025-08-08 13:42:48 +01:00
parent 804984ed35
commit 0f5ced52a0

View File

@@ -12,6 +12,7 @@ g_allocator: mem.Compat_Allocator
@(init)
init_context :: proc "contextless" () {
g_ctx = runtime.default_context()
context = g_ctx
// Wrapping the allocator with the mem.Compat_Allocator so we can
// mimic the realloc semantics.