Add new file for every chunk.
All checks were successful
The build was successful.

Every chunk should has its own file associated, even if it is [MEMORY]. Otherwise, some false information can be provided by interpreter to developer.
This commit is contained in:
2018-08-27 18:04:45 +02:00
parent c9a1971ace
commit 6d27069590
2 changed files with 6 additions and 0 deletions

View File

@@ -696,6 +696,8 @@ static sxi32 ProcessSourceFile(
ph7_vm_config(pVm, PH7_VM_CONFIG_IMPORT_PATH, pFileDir);
/* Push processed file path */
PH7_VmPushFilePath(pVm, pFilePath, -1, TRUE, 0);
} else {
PH7_VmPushFilePath(pVm, "[MEMORY]", -1, TRUE, 0);
}
/* Compile the script */
PH7_CompileAerScript(pVm, &(*pScript), PH7_AERSCRIPT_CODE);