Skip to content

COBJ_INTERFACE_IMPLEMENTATION_MODE causing trouble #8

Description

@gprossliner

cobj needs to generate some code for a class implementing an interface, like the methodtable struct. This is currently enabled for an included header, if COBJ_INTERFACE_IMPLEMENTATION_MODE is defined.
This is causing trouble, because one .h file may included other .h files as dependencies, but they are not implemented in the given class.
A solution need to be implemented, that COBJ_INTERFACE_IMPLEMENTATION_MODE is not specified by the user, but that cobj does something like (pseudo-code):

#define COBJ_INTERFACE_IMPLEMENTATION_MODE COBJ_INTERACE_NAME exisits_in COBJ_CLASS_INTERFACES

This would lead to cleaner code anyway, because this symbol defines redundant data.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions