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:
parent
287ba56ab4
commit
9b432ba172
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue