mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-24 08:27:53 +00:00
Replace context <- c {} with context = c;. context assignments are scope based
This commit is contained in:
@@ -29,13 +29,9 @@ create :: proc(procedure: Thread_Proc) -> ^Thread {
|
||||
if t.use_init_context {
|
||||
c = t.init_context;
|
||||
}
|
||||
context = c;
|
||||
|
||||
exit := 0;
|
||||
context <- c {
|
||||
exit = t.procedure(t);
|
||||
}
|
||||
|
||||
return i32(exit);
|
||||
return i32(t.procedure(t));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user