Normalise include statements in core code (#11153)
* Normalise include statements in core code * Missed one
This commit is contained in:
parent
5b5d74a267
commit
501f2fdef1
60 changed files with 99 additions and 79 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue