mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
contextless fixes for js
This commit is contained in:
Vendored
+2
-2
@@ -10,8 +10,8 @@ g_ctx: runtime.Context
|
||||
g_allocator: mem.Compat_Allocator
|
||||
|
||||
@(init)
|
||||
init_context :: proc() {
|
||||
g_ctx = context
|
||||
init_context :: proc "contextless" () {
|
||||
g_ctx = runtime.default_context()
|
||||
|
||||
// Wrapping the allocator with the mem.Compat_Allocator so we can
|
||||
// mimic the realloc semantics.
|
||||
|
||||
Reference in New Issue
Block a user