소스 검색

Assign `context` in scope

gingerBill 1 개월 전
부모
커밋
0f5ced52a0
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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.