6 #ifndef LIB_MACROS_HPP_
7 #define LIB_MACROS_HPP_
12 #define ALIGN_TO_SIZE(value, size) (((value) + size - 1) & ~(size-1))
14 #if LIB_CFG_DEBUG_ENABLE
15 #define LIB_DEBUG(level, string, ...) LibLog::printf(level,"%s/%d/" string "\r\n", __PRETTY_FUNCTION__,__LINE__, ##__VA_ARGS__)
16 #define LIB_ASSERT(condition) if((condition) == false){__error__(__FILE__, __LINE__);};
18 #define LIB_DEBUG(level, string, ...)
19 #define LIB_ASSERT(condition);
21 extern void __error__(
const char *fileName,
unsigned long line);