-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
虚函数打桩失败 #34
Comments
是在Windows环境吗 |
archlinux |
参考了cpp-stub的做法,把成员函数指针强制转换成普通指针就好了-- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
EMOCK((bool (QFile::*)(QFile::OpenMode))&QFile::open)
.stubs()
.will(returnValue(true));
terminate called after throwing an instance of 'emock::Exception'
what(): Failed to get address of [(bool (QFile::*)(QFile::OpenMode))&QFile::open], maybe inlined or haven't been overridden in derived class.
The text was updated successfully, but these errors were encountered: