forked from mfulz_github/qmk_firmware
		
	Fix invalid definition of STDOUT_ASSERT().
This commit is contained in:
		
							parent
							
								
									9e8bf8c0cf
								
							
						
					
					
						commit
						cb4e4a711e
					
				@ -136,7 +136,7 @@
 | 
				
			|||||||
				 *
 | 
									 *
 | 
				
			||||||
				 *  \param[in] Condition  Condition that will be evaluated,
 | 
									 *  \param[in] Condition  Condition that will be evaluated,
 | 
				
			||||||
				 */
 | 
									 */
 | 
				
			||||||
				#define STDOUT_ASSERT(Condition)        MACROS{ if (!(x)) {                                             \
 | 
									#define STDOUT_ASSERT(Condition)        MACROS{ if (!(Condition)) {                                     \
 | 
				
			||||||
				                                                     printf_P(PSTR("%s: Function \"%s\", Line %d: "     \
 | 
									                                                     printf_P(PSTR("%s: Function \"%s\", Line %d: "     \
 | 
				
			||||||
				                                                                   "Assertion \"%s\" failed.\r\n"),     \
 | 
									                                                                   "Assertion \"%s\" failed.\r\n"),     \
 | 
				
			||||||
				                                                                   __FILE__, __func__, __LINE__, #Condition); } }MACROE
 | 
									                                                                   __FILE__, __func__, __LINE__, #Condition); } }MACROE
 | 
				
			||||||
@ -160,7 +160,7 @@
 | 
				
			|||||||
				#define JTAG_DEBUG_POINT()              __asm__ __volatile__ ("nop" ::)
 | 
									#define JTAG_DEBUG_POINT()              __asm__ __volatile__ ("nop" ::)
 | 
				
			||||||
				#define JTAG_DEBUG_BREAK()              __asm__ __volatile__ ("breakpoint" ::)
 | 
									#define JTAG_DEBUG_BREAK()              __asm__ __volatile__ ("breakpoint" ::)
 | 
				
			||||||
				#define JTAG_ASSERT(Condition)          MACROS{ if (!(Condition)) { JTAG_DEBUG_BREAK(); } }MACROE
 | 
									#define JTAG_ASSERT(Condition)          MACROS{ if (!(Condition)) { JTAG_DEBUG_BREAK(); } }MACROE
 | 
				
			||||||
				#define STDOUT_ASSERT(Condition)        MACROS{ if (!(x)) {                                      \
 | 
									#define STDOUT_ASSERT(Condition)        MACROS{ if (!(Condition)) {                              \
 | 
				
			||||||
				                                                     printf("%s: Function \"%s\", Line %d: "     \
 | 
									                                                     printf("%s: Function \"%s\", Line %d: "     \
 | 
				
			||||||
				                                                            "Assertion \"%s\" failed.\r\n"),     \
 | 
									                                                            "Assertion \"%s\" failed.\r\n"),     \
 | 
				
			||||||
				                                                            __FILE__, __func__, __LINE__, #Condition); } }MACROE
 | 
									                                                            __FILE__, __func__, __LINE__, #Condition); } }MACROE
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user