mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 01:21:38 -07:00
Assign context in scope
This commit is contained in:
Vendored
+1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user