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

Reflector and Generator can't deal with delegates that return a value #32

Open
lemonmojo opened this issue Dec 8, 2019 · 0 comments
Open

Comments

@lemonmojo
Copy link
Contributor

When #29 is merged, the generator correctly generates code for custom event handlers based on delegates that have more or less than two arguments.
However, delegates with return values are still not supported.

Here's an example:

public delegate bool TeamAddedTestDelegate(Team team, bool test, int test2, float test3, byte test4);
public event TeamAddedTestDelegate TeamAddedTest;

The generated block typedef looks like this:

typedef void (^DubLib_Company_TeamAddedTest_EventBlock)(DubLib_Team * team, BOOL test, int32_t test2, float test3, uint8_t test4);
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

No branches or pull requests

1 participant