Change keyboard level include guards to pragma once (#14248)

* Change keyboard level include guards to `pragma once`

And clean up a lot of layout macros

* Oops

* Remove dangling endif
This commit is contained in:
Ryan
2021-09-01 19:03:14 +10:00
committed by GitHub
parent 971d36bb9e
commit 41c50bb653
308 changed files with 3520 additions and 4568 deletions

View File

@@ -1,6 +1,3 @@
#ifndef V2017_H
#define V2017_H
#pragma once
#include "christmas_tree.h"
#endif

View File

@@ -1,8 +1,5 @@
#ifndef V2017_CONFIG_H
#define V2017_CONFIG_H
#pragma once
#include "config_common.h"
#define DEVICE_VER 0x2017
#endif

View File

@@ -1,20 +1,14 @@
#ifndef CHRISTMAS_TREE_H
#define CHRISTMAS_TREE_H
#pragma once
#include "quantum.h"
#define LAYOUT( \
k00, k01, k02, k03, k04, k05 \
) \
{ \
{ k00 }, \
{ k01 }, \
{ k02 }, \
{ k03 }, \
{ k04 }, \
{ k05 } \
k00, k10, k20, k30, k40, k50 \
) { \
{ k00 }, \
{ k10 }, \
{ k20 }, \
{ k30 }, \
{ k40 }, \
{ k50 } \
}
#endif

View File

@@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef CONFIG_H
#define CONFIG_H
#pragma once
#include "config_common.h"
@@ -53,5 +52,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
#endif