Introducing exitval opcode for end of script and assertions in unit tests. The opcode finishes interpretation with status code 0 (success) or 1 (failure).
This commit is contained in:
@@ -308,6 +308,10 @@ OP_CODE_DECL (varg_3_end, T_IDX_IDX_IDX,
|
||||
arg2_lit_idx,
|
||||
arg3_lit_idx)
|
||||
|
||||
/** exit with status code; */
|
||||
OP_CODE_DECL (exitval, T_IDX,
|
||||
status_code)
|
||||
|
||||
/** return value; */
|
||||
OP_CODE_DECL (retval, T_IDX,
|
||||
ret_value)
|
||||
@@ -384,4 +388,4 @@ OP_CODE_DECL (var_decl, T_IDX,
|
||||
// TODO New constructor
|
||||
|
||||
#endif /* OPCODE_STRUCTURES_H */
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user