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:
		
							parent
							
								
									971d36bb9e
								
							
						
					
					
						commit
						41c50bb653
					
				
					 308 changed files with 3520 additions and 4568 deletions
				
			
		| 
						 | 
				
			
			@ -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"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -151,5 +150,3 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
//#define NO_ACTION_ONESHOT
 | 
			
		||||
//#define NO_ACTION_MACRO
 | 
			
		||||
//#define NO_ACTION_FUNCTION
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,21 +1,19 @@
 | 
			
		|||
#ifndef GAMENUM_H
 | 
			
		||||
#define GAMENUM_H
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#include "quantum.h"
 | 
			
		||||
 | 
			
		||||
#define LAYOUT( \
 | 
			
		||||
	k00, k01, k02, k03, \
 | 
			
		||||
	k10, k11, k12, k13, \
 | 
			
		||||
	k20, k21, k22,      \
 | 
			
		||||
	k30, k31, k32,      \
 | 
			
		||||
	     k41, k42, k43  \
 | 
			
		||||
) \
 | 
			
		||||
{ \
 | 
			
		||||
	{ k00,   k01, k02, k03   }, \
 | 
			
		||||
	{ k10,   k11, k12, k13   }, \
 | 
			
		||||
	{ k20,   k21, k22, KC_NO }, \
 | 
			
		||||
	{ k30,   k31, k32, KC_NO }, \
 | 
			
		||||
	{ KC_NO, k41, k42, k43   }  \
 | 
			
		||||
}
 | 
			
		||||
#define XXX KC_NO
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
#define LAYOUT( \
 | 
			
		||||
    k00, k01, k02, k03, \
 | 
			
		||||
    k10, k11, k12, k13, \
 | 
			
		||||
    k20, k21, k22, \
 | 
			
		||||
    k30, k31, k32, \
 | 
			
		||||
         k41, k42, k43 \
 | 
			
		||||
) { \
 | 
			
		||||
    { k00, k01, k02, k03 }, \
 | 
			
		||||
    { k10, k11, k12, k13 }, \
 | 
			
		||||
    { k20, k21, k22, XXX }, \
 | 
			
		||||
    { k30, k31, k32, XXX }, \
 | 
			
		||||
    { XXX, k41, k42, k43 } \
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue