mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Assign context in scope
This commit is contained in:
Vendored
+1
@@ -12,6 +12,7 @@ g_allocator: mem.Compat_Allocator
|
|||||||
@(init)
|
@(init)
|
||||||
init_context :: proc "contextless" () {
|
init_context :: proc "contextless" () {
|
||||||
g_ctx = runtime.default_context()
|
g_ctx = runtime.default_context()
|
||||||
|
context = g_ctx
|
||||||
|
|
||||||
// Wrapping the allocator with the mem.Compat_Allocator so we can
|
// Wrapping the allocator with the mem.Compat_Allocator so we can
|
||||||
// mimic the realloc semantics.
|
// mimic the realloc semantics.
|
||||||
|
|||||||
Reference in New Issue
Block a user