Implement Explicit context creation #639
This commit is contained in:
1 parent
af1d4d6e72
commit
f661d34049
6 files changed
+39
-11
No files matched your search
@@ -440,6 +440,12 @@ default_logger :: proc() -> Logger {
|
||||
}
|
||||
|
||||
|
||||
default_context :: proc "contextless" () -> Context {
|
||||
c: Context;
|
||||
__init_context(&c);
|
||||
return c;
|
||||
}
|
||||
|
||||
@private
|
||||
__init_context_from_ptr :: proc "contextless" (c: ^Context, other: ^Context) {
|
||||
if c == nil do return;
|
||||
|
||||
Reference in new issue
Block a user