Skip to content

Way to prevent duplicate includes #20

Description

@CoPokBl

If you're using a library that needs another lib then that lib will include the other. But if your app also needs it then it'll include it and it won't compile. In C and C++ they use #ifndef to prevent duplicate includes, that could also work here but a #include vs #insert might be a better choice so we can add all includes to a set and duplicate includes can be ignored. And for the situation where duplicate is fine or it's important that it's inserted where you want you can use #insert.

Done for Catnip.

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