mirror of
				https://github.com/eledio-devices/thirdparty-littlefs.git
				synced 2025-10-31 08:42:40 +01:00 
			
		
		
		
	Generated v2 prefixes
This commit is contained in:
		
							
								
								
									
										10
									
								
								lfs2_util.h
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								lfs2_util.h
									
									
									
									
									
								
							| @@ -49,6 +49,7 @@ extern "C" | ||||
| // code footprint | ||||
|  | ||||
| // Logging functions | ||||
| #ifndef LFS2_TRACE | ||||
| #ifdef LFS2_YES_TRACE | ||||
| #define LFS2_TRACE_(fmt, ...) \ | ||||
|     printf("%s:%d:trace: " fmt "%s\n", __FILE__, __LINE__, __VA_ARGS__) | ||||
| @@ -56,7 +57,9 @@ extern "C" | ||||
| #else | ||||
| #define LFS2_TRACE(...) | ||||
| #endif | ||||
| #endif | ||||
|  | ||||
| #ifndef LFS2_DEBUG | ||||
| #ifndef LFS2_NO_DEBUG | ||||
| #define LFS2_DEBUG_(fmt, ...) \ | ||||
|     printf("%s:%d:debug: " fmt "%s\n", __FILE__, __LINE__, __VA_ARGS__) | ||||
| @@ -64,7 +67,9 @@ extern "C" | ||||
| #else | ||||
| #define LFS2_DEBUG(...) | ||||
| #endif | ||||
| #endif | ||||
|  | ||||
| #ifndef LFS2_WARN | ||||
| #ifndef LFS2_NO_WARN | ||||
| #define LFS2_WARN_(fmt, ...) \ | ||||
|     printf("%s:%d:warn: " fmt "%s\n", __FILE__, __LINE__, __VA_ARGS__) | ||||
| @@ -72,7 +77,9 @@ extern "C" | ||||
| #else | ||||
| #define LFS2_WARN(...) | ||||
| #endif | ||||
| #endif | ||||
|  | ||||
| #ifndef LFS2_ERROR | ||||
| #ifndef LFS2_NO_ERROR | ||||
| #define LFS2_ERROR_(fmt, ...) \ | ||||
|     printf("%s:%d:error: " fmt "%s\n", __FILE__, __LINE__, __VA_ARGS__) | ||||
| @@ -80,13 +87,16 @@ extern "C" | ||||
| #else | ||||
| #define LFS2_ERROR(...) | ||||
| #endif | ||||
| #endif | ||||
|  | ||||
| // Runtime assertions | ||||
| #ifndef LFS2_ASSERT | ||||
| #ifndef LFS2_NO_ASSERT | ||||
| #define LFS2_ASSERT(test) assert(test) | ||||
| #else | ||||
| #define LFS2_ASSERT(test) | ||||
| #endif | ||||
| #endif | ||||
|  | ||||
|  | ||||
| // Builtin functions, these may be replaced by more efficient | ||||
|   | ||||
		Reference in New Issue
	
	Block a user