-
Notifications
You must be signed in to change notification settings - Fork 49
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
Invalid identifier for non-typedef-ed structs #25
Comments
That code you posted is invalid, since the C block is malformed (there is no return type). In any case, what you want to do is perfectly fine, can you post a full example? If I try with
And then
Which is due to the problem I mentioned (no return type). If I fix that, for example with
I get
Which is telling you that |
Interesting. That's not the error I get, even if I fix the block declaration. Looks like I need to flesh out my example. |
Okay, here's a repository demonstrating the "invalid string" error: |
Thanks, I can reproduce. Currently investigating. |
The problem is in your
I'll think about how we could make this error better... |
Aha! I see. Probably just adding some example contexts using Many thanks for your help! Nick
|
The following block of code:
fails with the following error:
Foo
is storable and has been added to a custom context. I'm guessing this is an issue with not being able to parse non typedef-ed structs. Unfortunately the C project I'm trying to bind to has a policy of not usingtypedef
for structs, so this is a rather big issue.The text was updated successfully, but these errors were encountered: