Skip to content

Option to typealias empty structs to void #84

@kmsquire

Description

@kmsquire

libav has a number of internal structs that are only referred to by pointers. It would be useful to typealias those to Void.

Right now, a warning is generated for empty structs, and nothing is written to the output file.

It would probably good to either 1) have (yet another) option to write these out as typealias Void (or const name = Void), or 2) output a comment to the file indicating that the empty struct def was skipped.

I have a slight preference for 1, but I'm not sure at what point there are too many options for too many obscure features, so 2 would be fine.

I can submit a pull request if you indicate a preference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions