Initial support for void type.
All checks were successful
The build was successful.

This commit is contained in:
2018-11-23 09:19:37 +01:00
parent 87db6d6dfd
commit 174ecb2a38
6 changed files with 72 additions and 8 deletions

View File

@@ -2266,6 +2266,19 @@ static sxi32 VmByteCodeExec(
PH7_MemObjToObject(pTos);
}
break;
/*
* CVT_VOID: * * *
*
* Force the top of the stack to be a void type.
*/
case PH7_OP_CVT_VOID:
#ifdef UNTRUST
if(pTos < pStack) {
goto Abort;
}
#endif
PH7_MemObjToVoid(pTos);
break;
/*
* ERR_CTRL * * *
*