improved break handling further

This commit is contained in:
2016-10-13 07:41:10 +00:00
parent 1f16bc2d11
commit 4160e9e0fe
4 changed files with 107 additions and 46 deletions

View File

@ -1196,6 +1196,12 @@ static int execute (hcl_t* hcl)
hcl->proc_switched = 0;
if (hcl->ip >= hcl->code.bc.len)
{
HCL_DEBUG0 (hcl, "IP reached the end of bytecode. Stopping execution\n");
break;
}
#if defined(HCL_DEBUG_VM_EXEC)
fetched_instruction_pointer = hcl->ip;
#endif