Implement vpiSize method for stack string values.

This might come to pass for example when calling the function
$ivl_string_method$len(<expression>) where the expression is
calculated, and not simply a variable name.
This commit is contained in:
Stephen Williams 2021-01-18 12:39:54 -08:00
parent 287ba56ab4
commit 9b432ba172
1 changed files with 2 additions and 0 deletions

View File

@ -247,6 +247,8 @@ int __vpiVThrStrStack::vpi_get(int code)
case _vpiFromThr:
return _vpiString;
#endif
case vpiSize:
return vthread_get_str_stack(vpip_current_vthread, depth_).size();
default:
return 0;
}