mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-29 10:50:05 +00:00
Make or_else and or_return operators (binary and suffix respectively)
This commit is contained in:
@@ -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