Skip to content

struct typedef generates recursive alias #50

@rcorre

Description

@rcorre

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions