move declarations out from log.h to a better place

This commit is contained in:
Laurent THOMAS
2024-03-06 08:51:24 +01:00
parent 2129ee3c9c
commit d1002cc729
4 changed files with 11 additions and 12 deletions
+1
View File
@@ -18,6 +18,7 @@ extern "C" {
#endif
#define sizeofArray(a) (sizeof(a)/sizeof(*(a)))
#define CHECK_INDEX(ARRAY, INDEX) assert((INDEX) < sizeofArray(ARRAY))
#define cmax(a,b) ((a>b) ? (a) : (b))
#define cmax3(a,b,c) ((cmax(a,b)>c) ? (cmax(a,b)) : (c))