Try to report some line.
All checks were successful
The build was successful.

This commit is contained in:
2019-04-10 09:18:26 +02:00
parent 447910ce2e
commit d6434ba19e

View File

@@ -8408,7 +8408,7 @@ static int vm_builtin_assert(ph7_context *pCtx, int nArg, ph7_value **apArg) {
}
/* Invoke the callback */
PH7_MemObjInitFromString(pVm, &sFile, pFile);
PH7_MemObjInitFromInt(pVm, &sLine, 0);
PH7_MemObjInitFromInt(pVm, &sLine, 1);
apCbArg[0] = &sFile;
apCbArg[1] = &sLine;
apCbArg[2] = pAssert;