Skip to content

Change File and FileManager macro guards prefix according to specified namespace #50

@end2endzone

Description

@end2endzone

The --namespace argument was designed to allow users to include the generated files within their own custom namespace instead of using hardcoded namespace bin2cpp.

When users want to generate files in two different custom namespaces, the File and FileManager interfaces are guarded by the same macro guards. Specifically by the macro guards BIN2CPP_EMBEDDEDFILE_CLASS and BIN2CPP_FILEMANAGER_CLASS which is a problem. Each namespace should have an independent (but unfortunately identical) File and FileManager interfaces.

The issue is that when a source file includes two headers of each namespace, the second header cannot register the interfaces because the other header has already defined the macro guards.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions