mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-30 21:02:32 +01:00 
			
		
		
		
	This commit is contained in:
		
							parent
							
								
									2703ecc9e9
								
							
						
					
					
						commit
						6a81cb44f2
					
				| @ -9,9 +9,11 @@ void split_shared_memory_lock(void); | |||||||
| void split_shared_memory_unlock(void); | void split_shared_memory_unlock(void); | ||||||
| #    endif | #    endif | ||||||
| #else | #else | ||||||
|  | #    if defined(SPLIT_KEYBOARD) | ||||||
| inline void split_shared_memory_lock(void){}; | inline void split_shared_memory_lock(void){}; | ||||||
| inline void split_shared_memory_unlock(void){}; | inline void split_shared_memory_unlock(void){}; | ||||||
| #    endif | #    endif | ||||||
|  | #endif | ||||||
| 
 | 
 | ||||||
| /* GCCs cleanup attribute expects a function with one parameter, which is a
 | /* GCCs cleanup attribute expects a function with one parameter, which is a
 | ||||||
|  * pointer to a type compatible with the variable. As we don't want to expose |  * pointer to a type compatible with the variable. As we don't want to expose | ||||||
| @ -31,6 +33,7 @@ inline void split_shared_memory_unlock(void){}; | |||||||
|  * lock_autounlock function macro */ |  * lock_autounlock function macro */ | ||||||
| #define QMK_DECLARE_AUTOUNLOCK_CALL(prefix) unsigned prefix##_guard __attribute__((unused, cleanup(prefix##_autounlock_unlock_helper))) = prefix##_autounlock_lock_helper | #define QMK_DECLARE_AUTOUNLOCK_CALL(prefix) unsigned prefix##_guard __attribute__((unused, cleanup(prefix##_autounlock_unlock_helper))) = prefix##_autounlock_lock_helper | ||||||
| 
 | 
 | ||||||
|  | #if defined(SPLIT_KEYBOARD) | ||||||
| QMK_DECLARE_AUTOUNLOCK_HELPERS(split_shared_memory) | QMK_DECLARE_AUTOUNLOCK_HELPERS(split_shared_memory) | ||||||
| 
 | 
 | ||||||
| /**
 | /**
 | ||||||
| @ -42,3 +45,4 @@ QMK_DECLARE_AUTOUNLOCK_HELPERS(split_shared_memory) | |||||||
|  * when the enclosing function returns. |  * when the enclosing function returns. | ||||||
|  */ |  */ | ||||||
| #    define split_shared_memory_lock_autounlock QMK_DECLARE_AUTOUNLOCK_CALL(split_shared_memory) | #    define split_shared_memory_lock_autounlock QMK_DECLARE_AUTOUNLOCK_CALL(split_shared_memory) | ||||||
|  | #endif | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Stefan Kerkmann
						Stefan Kerkmann