reimplementing try-catch

This commit is contained in:
2021-04-11 15:08:27 +00:00
parent 08149767b5
commit 5537e1850a
4 changed files with 39 additions and 37 deletions

View File

@ -3120,7 +3120,8 @@ static int execute (hcl_t* hcl)
/* -------------------------------------------------------- */
case HCL_CODE_TRY_ENTER:
LOG_INST_0 (hcl, "try_enter");
FETCH_PARAM_CODE_TO (hcl, b1);
LOG_INST_0 (hcl, "try_enter %zu", b1);
#if 0
if (call_try_catch(hcl) <= -1)
{
@ -3130,6 +3131,10 @@ static int execute (hcl_t* hcl)
#endif
break;
case HCL_CODE_TRY_ENTER2:
FETCH_PARAM_CODE_TO (hcl, b1);
LOG_INST_0 (hcl, "try_enter2 %zu", b1);
case HCL_CODE_TRY_EXIT:
LOG_INST_0 (hcl, "try_exit");
break;