mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-05 10:14:05 +00:00
Assign context in scope
This commit is contained in:
1
vendor/libc/libc.odin
vendored
1
vendor/libc/libc.odin
vendored
@@ -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