embkernel
 All Classes Functions Variables Typedefs Groups Pages
LibDebug.hpp
1 //------------------------------------------------------------------------------
2 //This file is part of embKernel.
3 //See license.txt for the full license governing this code.
4 //------------------------------------------------------------------------------
5 
6 #ifndef LIBDEBUG_HPP_
7 #define LIBDEBUG_HPP_
8 
9 #include "LibCfg.hpp"
10 #include "LibLog.hpp"
11 
12 #if LIB_CFG_USER_DEBUG_ENABLE
13 #define USER_DEBUG LIB_DEBUG
14 #define USER_ASSERT LIB_ASSERT
15 #else
16 #define USER_DEBUG(level, string, ...)
17 #define USER_ASSERT(condition);
18 #endif
19 extern void __error__(const char *fileName, unsigned long line);
20 
21 #endif /* LIBDEBUG_HPP_ */