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

_param is unavailable when void * -only parameter passing is used #12

Open
mulle-nat opened this issue Aug 26, 2022 · 0 comments
Open

Comments

@mulle-nat
Copy link
Member

mulle-nat commented Aug 26, 2022

The compiler should somehow then alias the only named parameter as _param, so that forwarding code can be written more uniformly, without having to think about types (in this case).

OK

- (void) foo:(double) x
{
   mulle_objc_object_call( self, @selector( bar:), _param);
}

Not OK (at the moment)

- (void) foo:(void *) x
{
   mulle_objc_object_call( self, @selector( bar:), _param);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant