mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 02:32:42 -05:00 
			
		
		
		
	Add the default definition of configPRECONDITION to FreeRTOS.h.
This is needed for CBMC proofs.
This commit is contained in:
		
							parent
							
								
									b4c06085e1
								
							
						
					
					
						commit
						6bad7d2055
					
				
					 1 changed files with 13 additions and 0 deletions
				
			
		| 
						 | 
					@ -241,6 +241,19 @@ extern "C" {
 | 
				
			||||||
	#define configASSERT_DEFINED 1
 | 
						#define configASSERT_DEFINED 1
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* configPRECONDITION should resolve to configASSERT. The CBMC proofs need a way
 | 
				
			||||||
 | 
					to track assumptions and assertions.
 | 
				
			||||||
 | 
					- A configPRECONDITION statement should express an implicit invariant or
 | 
				
			||||||
 | 
					assumption made.
 | 
				
			||||||
 | 
					- A configASSERT statement should express an invariant that must hold explicit
 | 
				
			||||||
 | 
					before calling the code. */
 | 
				
			||||||
 | 
					#ifndef configPRECONDITION
 | 
				
			||||||
 | 
						#define configPRECONDITION( X ) configASSERT(X)
 | 
				
			||||||
 | 
						#define configPRECONDITION_DEFINED 0
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
 | 
						#define configPRECONDITION_DEFINED 1
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef portMEMORY_BARRIER
 | 
					#ifndef portMEMORY_BARRIER
 | 
				
			||||||
	#define portMEMORY_BARRIER()
 | 
						#define portMEMORY_BARRIER()
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue