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

struct typedef generates recursive alias #50

Closed
rcorre opened this issue Feb 14, 2016 · 0 comments
Closed

struct typedef generates recursive alias #50

rcorre opened this issue Feb 14, 2016 · 0 comments
Labels

Comments

@rcorre
Copy link

rcorre commented Feb 14, 2016

The following header:

typedef struct Foo Foo;
struct Foo { int i; };

Will cause dstep to produce:

extern (C):

alias Foo Foo;

struct Foo
{
    int i;
}

Where alias Foo Foo is a syntax error (recursive alias definition).

I was seeing this a lot while trying to create bindings for Chipmunk2D
(example)

@ciechowoj ciechowoj mentioned this issue May 27, 2016
ciechowoj added a commit to ciechowoj/dstep that referenced this issue May 31, 2016
ciechowoj added a commit to ciechowoj/dstep that referenced this issue Jun 6, 2016
ciechowoj added a commit to ciechowoj/dstep that referenced this issue Jun 6, 2016
ciechowoj added a commit to ciechowoj/dstep that referenced this issue Jun 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants