Make or_else and or_return operators (binary and suffix respectively)
This commit is contained in:
1 parent
a3a20f09e2
commit
21cbac755e
16 files changed
+247
-195
No files matched your search
@@ -46,7 +46,7 @@ _create :: proc(procedure: Thread_Proc, priority := Thread_Priority.Normal) -> ^
|
||||
t.start_gate = {};
|
||||
t.start_mutex = {};
|
||||
|
||||
context = or_else(t.init_context.?, runtime.default_context());
|
||||
context = t.init_context.? or_else runtime.default_context();
|
||||
|
||||
t.procedure(t);
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ _create :: proc(procedure: Thread_Proc, priority := Thread_Priority.Normal) -> ^
|
||||
|
||||
__windows_thread_entry_proc :: proc "stdcall" (t_: rawptr) -> win32.DWORD {
|
||||
t := (^Thread)(t_);
|
||||
context = or_else(t.init_context.?, runtime.default_context());
|
||||
context = t.init_context.? or_else runtime.default_context();
|
||||
|
||||
t.procedure(t);
|
||||
|
||||
|
||||
Reference in new issue
Block a user