-
Notifications
You must be signed in to change notification settings - Fork 8
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
base: master
Are you sure you want to change the base?
Conversation
include/dl/dl_typelib.h
Outdated
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 ); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
# Conflicts: # tests/dl_tests_typelib.cpp
# Conflicts: # src/dl_typelib_read_txt.cpp
#165