Add more comments.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2018-09-02 18:45:01 +02:00
parent da198fcb44
commit 3e1d91e909
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 2 additions and 0 deletions

View File

@ -1897,9 +1897,11 @@ PH7_PRIVATE sxi32 PH7_VmMemoryError(
if(pVm->bErrReport) { if(pVm->bErrReport) {
/* Report OOM problem */ /* Report OOM problem */
VmInstr *pInstr = SySetPeek(&pVm->aInstrSet); VmInstr *pInstr = SySetPeek(&pVm->aInstrSet);
/* Initialize the working buffer */
SyBlobInit(&sWorker, &pVm->sAllocator); SyBlobInit(&sWorker, &pVm->sAllocator);
SyBlobFormat(&sWorker, "Fatal: PH7 Engine is running out of memory. Allocated %u bytes in %z:%u", SyBlobFormat(&sWorker, "Fatal: PH7 Engine is running out of memory. Allocated %u bytes in %z:%u",
pVm->sAllocator.pHeap->nSize, pInstr->pFile, pInstr->iLine); pVm->sAllocator.pHeap->nSize, pInstr->pFile, pInstr->iLine);
/* Consume the error message */
VmCallErrorHandler(&(*pVm), &sWorker); VmCallErrorHandler(&(*pVm), &sWorker);
} }
/* Set exit code to 255 */ /* Set exit code to 255 */