Skip to content

Commit 41c50bb

Browse files
authoredSep 1, 2021
Change keyboard level include guards to pragma once (qmk#14248)
* Change keyboard level include guards to `pragma once` And clean up a lot of layout macros * Oops * Remove dangling endif
1 parent 971d36b commit 41c50bb

File tree

308 files changed

+3484
-4532
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

308 files changed

+3484
-4532
lines changed
 

‎keyboards/6ball/6ball.h

+6-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
#ifndef SIXBALL_H
2-
#define SIXBALL_H
1+
#pragma once
32

43
#include "quantum.h"
54

65
#define LAYOUT( \
7-
k01, k02, k03, \
8-
k04, k05, k06 \
9-
) \
10-
{ \
11-
{ k02, k03, k06, k05, k04, k01 } \
12-
}
13-
14-
#endif
6+
k05, k00, k01, \
7+
k04, k03, k02 \
8+
) { \
9+
{ k00, k01, k02, k03, k04, k05 } \
10+
}

‎keyboards/6ball/config.h

+1-4
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
1515
along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef CONFIG_H
19-
#define CONFIG_H
18+
#pragma once
2019

2120
#include "config_common.h"
2221

@@ -46,5 +45,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
4645
#define DIODE_DIRECTION COL2ROW
4746

4847
#define TAPPING_TERM 200
49-
50-
#endif

0 commit comments

Comments
 (0)
Please sign in to comment.