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

Weak symbols #7

Open
gedankenexperimenter opened this issue Feb 2, 2018 · 1 comment
Open

Weak symbols #7

gedankenexperimenter opened this issue Feb 2, 2018 · 1 comment

Comments

@gedankenexperimenter
Copy link
Owner

I think it will work to use weak symbols for the master hook function definitions in the core, and make parts of the HID module(s) selectively link that way. I need to test this.

@gedankenexperimenter
Copy link
Owner Author

I want everything that's pluggable/selectable to be defined somewhere in the sketch, with preprocessor macros or by other means.

Plugin hook functions could be done with weak symbols, maybe, in order to bring them in without reading config files in the plugin repo.

HID endpoints (i.e. BootKeyboard) could have the static objects defined only inside weak wrapper functions (in core?), and if those functions are overridden elsewhere, they should be dropped from the program. Test this.

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

No branches or pull requests

1 participant