Replace context <- c {} with context = c;. context assignments are scope based

This commit is contained in:
gingerBill
2018-08-04 23:14:55 +01:00
parent 0718f14774
commit cdbf831a7a
10 changed files with 133 additions and 136 deletions
+2 -6
View File
@@ -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));
}