Added external VPrint method for use for when Python print output not displayed on the console (E.g. Questa on Linux). Test updated to use this.

This commit is contained in:
Simon Southwell 2024-01-28 13:35:49 +00:00
commit a12fb26cc5
3 changed files with 30 additions and 11 deletions

View file

@ -162,6 +162,17 @@ int RunPython(const int node)
// Functions callable from Python
// ------------------------------------------------------------
// Extrnal print function alternative for when Python print
// output not displayed on the console (E.g. Questa on Linux).
// ------------------------------------------------------------
uint32_t PyPrint(const char* str)
{
printf("%s\n", str);
return 0;
}
// ------------------------------------------------------------
// VWrite wrapper function for Python
// ------------------------------------------------------------