1
0
Fork 0

Normalise include statements in core code (#11153)

* Normalise include statements in core code

* Missed one
This commit is contained in:
Ryan 2020-12-11 13:45:24 +11:00 committed by GitHub
parent 5b5d74a267
commit 501f2fdef1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
60 changed files with 99 additions and 79 deletions

View file

@ -184,7 +184,7 @@ If you wanted to consolidate macros and other functions into your userspace for
First, you'd want to go through all of your `keymap.c` files and replace `process_record_user` with `process_record_keymap` instead. This way, you can still use keyboard specific codes on those boards, and use your custom "global" keycodes as well. You'll also want to replace `SAFE_RANGE` with `NEW_SAFE_RANGE` so that you wont have any overlapping keycodes
Then add `#include <name.h>` to all of your keymap.c files. This allows you to use these new keycodes without having to redefine them in each keymap.
Then add `#include "<name>.h"` to all of your keymap.c files. This allows you to use these new keycodes without having to redefine them in each keymap.
Once you've done that, you'll want to set the keycode definitions that you need to the `<name>.h` file. For instance:
```c