changed hawk_rtx_seterrnum() to be consistent with hawk_gem_seterrnum()

This commit is contained in:
2019-12-31 15:52:28 +00:00
parent fffc474b9c
commit 988dc83bf4
12 changed files with 125 additions and 205 deletions

View File

@@ -3310,7 +3310,7 @@ static hawk_val_t* eval_expression0 (hawk_rtx_t* rtx, hawk_nde_t* nde)
* clears the error number. run_main will
* detect this condition and treat it as a
* non-error condition.*/
hawk_rtx_seterrnum (rtx, HAWK_ENOERR, HAWK_NULL);
hawk_rtx_seterrnum (rtx, HAWK_NULL, HAWK_ENOERR);
return HAWK_NULL;
}
@@ -5986,7 +5986,7 @@ static hawk_val_t* __eval_call (
if (call->u.fnc.spec.impl)
{
hawk_rtx_seterrnum (rtx, HAWK_ENOERR, HAWK_NULL);
hawk_rtx_seterrnum (rtx, HAWK_NULL, HAWK_ENOERR);
n = call->u.fnc.spec.impl(rtx, &call->u.fnc.info);