Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for includes #166

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open

Added support for includes #166

wants to merge 19 commits into from

Conversation

Tisten
Copy link
Contributor

@Tisten Tisten commented Nov 1, 2022

include/dl/dl_typelib.h Outdated Show resolved Hide resolved
dl_ctx - dl-context to load typelib into.
file_to_include - the path to the file to include
*/
typedef dl_error_t ( *dl_include_handler )( void* handler_ctx, dl_ctx_t dl_ctx, const char* file_to_include );
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pass a struct with ctx and include-path/id and user data instead, this to make api easier to extend.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know where you are coming from, but in this case I disagree for one important reason, this is a function which DL calls and the user of dl implements.

I want a compile error when the signature changes. Otherwise I might miss a change and thus not implement support for the functionality the new argument. If this had been a function which DL implemented and only the called would have to pass in a struct which can be default constructed then I would agree with you.

include/dl/dl_typelib.h Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants