Try to exit with code returned by Program::main() only when it is integer value.
一些檢查回報了錯誤
The build has failed.
一些檢查回報了錯誤
The build has failed.
此提交包含在:
@@ -5506,7 +5506,10 @@ PH7_PRIVATE sxi32 PH7_VmByteCodeExec(ph7_vm *pVm) {
|
|||||||
/* Call entry point */
|
/* Call entry point */
|
||||||
PH7_VmCallClassMethod(&(*pVm), pInstance, pMethod, &pResult, 1, &pArgs);
|
PH7_VmCallClassMethod(&(*pVm), pInstance, pMethod, &pResult, 1, &pArgs);
|
||||||
if(!pVm->iExitStatus) {
|
if(!pVm->iExitStatus) {
|
||||||
pVm->iExitStatus = ph7_value_to_int(&pResult);
|
if(pMethod->sFunc.nType == MEMOBJ_INT) {
|
||||||
|
pVm->iExitStatus = ph7_value_to_int(&pResult);
|
||||||
|
} else {
|
||||||
|
pVm->iExitStatus = 0;
|
||||||
}
|
}
|
||||||
/* Invoke any shutdown callbacks */
|
/* Invoke any shutdown callbacks */
|
||||||
VmInvokeShutdownCallbacks(&(*pVm));
|
VmInvokeShutdownCallbacks(&(*pVm));
|
||||||
|
|||||||
新增問題並參考
封鎖使用者