svunit / svmock

A mock framework for use with SVUnit
Apache License 2.0
15 stars 4 forks source link

'clear' function should be void #1

Closed tudortimi-ifx closed 6 years ago

tudortimi-ifx commented 6 years ago

In '__mocker', the 'clear()' functions should be declared as 'virtual function void clear()', otherwise it defaults to returning 'int' (I think?).

Also, in the definition of `SVMOCK(...), the 'clear()' function is explicitly declared to return bit, but no result is returned.

Due to the issues mentioned above I got compiler errors when requiring return values be used (in IUS, '-ncerror FUNTSK').

nosnhojn commented 6 years ago

fixed in https://github.com/nosnhojn/svmock/commit/6f926fecfbc9607c5dc0d44c75ce3b8c567a3523