Skip to content
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

Fix multiple stubs with different primitive args #101

Merged
merged 1 commit into from
Aug 13, 2013

Conversation

idoru
Copy link
Contributor

@idoru idoru commented Aug 8, 2013

This fixes the broken test case, but I'd like some feedback on how to do this better. In particular, I'm not super comfortable with using typeid(). I'd prefer line 72 on StubbedMethod.mm to be:

if (Arguments::anything.get() == argument_ptr.get()) {

This doesn't work because Arguments::anything doesn't always return a shared pointer to the same Arguments::AnyArgument instance. Shouldn't it do that since it's statically initialized? (AnyArgument.h:24)

idoru added a commit that referenced this pull request Aug 13, 2013
Fix multiple stubs with different primitive args
@idoru idoru merged commit a1a8afd into master Aug 13, 2013
@idoru idoru deleted the fix-multi-stub-with-primitives branch August 13, 2013 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant