progress
This commit is contained in:
@@ -40,6 +40,8 @@ static inline void doLabels(GroundProgram* program, GroundState* state) {
|
||||
return;
|
||||
}
|
||||
|
||||
arg->_offset = *line;
|
||||
|
||||
} else if (instruction->type == GroundInstruction_IF) {
|
||||
GroundArg* arg = &instruction->args.at[1];
|
||||
size_t* line = Ground.State.findLabel(state, arg->as.ref);
|
||||
@@ -50,6 +52,8 @@ static inline void doLabels(GroundProgram* program, GroundState* state) {
|
||||
Ground.Flags.error = true;
|
||||
return;
|
||||
}
|
||||
|
||||
arg->_offset = *line;
|
||||
|
||||
} else if (instruction->type == GroundInstruction_CATCH) {
|
||||
GroundArg* arg = &instruction->args.at[1];
|
||||
@@ -62,6 +66,8 @@ static inline void doLabels(GroundProgram* program, GroundState* state) {
|
||||
return;
|
||||
}
|
||||
|
||||
arg->_offset = *line;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user