mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 08:56:07 +00:00
fix do wrap bugs
This commit is contained in:
@@ -30,7 +30,7 @@ func parseReturn(code UNPARSEcode, index int, codeline []UNPARSEcode) (CallJumpS
|
||||
realcode: code.realcode,
|
||||
line: code.line,
|
||||
path: code.path,
|
||||
}, index, codeline, 0)
|
||||
}, index, codeline, 1)
|
||||
return CallJumpStatment{
|
||||
TYPE: "return",
|
||||
value: resp,
|
||||
@@ -57,3 +57,12 @@ func runJumpStatment(code CallJumpStatment, stack stack) (any, ArErr) {
|
||||
path: code.path,
|
||||
}, ArErr{}
|
||||
}
|
||||
|
||||
func openJump(resp any) any {
|
||||
switch x := resp.(type) {
|
||||
case PassBackJumpStatment:
|
||||
return x.value
|
||||
default:
|
||||
return resp
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user