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:
Ruben Ayrapetyan
2014-07-17 21:32:29 +04:00
parent 819b947445
commit 0209acad65
4 changed files with 34 additions and 2 deletions
+5 -1
View File
@@ -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 */