No data type for argument specified leads to E_ERROR.
The build was successful.
Details
The build was successful.
Details
This commit is contained in:
parent
ca00cadba7
commit
94ae7d187b
|
@ -2959,6 +2959,9 @@ static sxi32 PH7_GenStateCollectFuncArgs(ph7_vm_func *pFunc, ph7_gen_state *pGen
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
pIn++; /* Jump the dollar sign */
|
pIn++; /* Jump the dollar sign */
|
||||||
|
if(!sArg.nType) {
|
||||||
|
PH7_GenCompileError(&(*pGen), E_ERROR, pIn->nLine, "Argument '$%z' is of undefined data type", &pIn->sData);
|
||||||
|
}
|
||||||
/* Copy argument name */
|
/* Copy argument name */
|
||||||
zDup = SyMemBackendStrDup(&pGen->pVm->sAllocator, SyStringData(&pIn->sData), SyStringLength(&pIn->sData));
|
zDup = SyMemBackendStrDup(&pGen->pVm->sAllocator, SyStringData(&pIn->sData), SyStringLength(&pIn->sData));
|
||||||
if(zDup == 0) {
|
if(zDup == 0) {
|
||||||
|
|
Loading…
Reference in New Issue