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