Quellcode durchsuchen

Assign `context` in scope

gingerBill vor 1 Monat
Ursprung
Commit
0f5ced52a0
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      vendor/libc/libc.odin

+ 1 - 0
vendor/libc/libc.odin

@@ -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.