#define LWIP_CHKSUM_ALGORITHM 2
#endif
+#ifdef LWIP_DEBUG
+
+extern int32_t rpp_sci_printf(const char* format, ...);
+#define LWIP_PLATFORM_DIAG(expr) rpp_sci_printf expr
+
+#else
+#define LWIP_PLATFORM_DIAG(expr)
+#endif
+
//#define DEBUG
#ifdef DEBUG
-#define LWIP_PLATFORM_DIAG(expr)
+/* for passing arguments to print function */
+#define CC_ASSERT(message, assertion) do { if(!(assertion)) \
+ LWIP_PLATFORM_DIAG(message); } while(0)
//extern void __error__(char *pcFilename, unsigned long ulLine);
-extern int32_t rpp_sci_printf(const char* format, ...);
-#define LWIP_PLATFORM_ASSERT(expr) rpp_sci_printf((const char *) expr)
+extern int32_t rpp_sci_printkb(const char* format, ...);
+#define LWIP_PLATFORM_ASSERT(expr) rpp_sci_printkb((const char *) expr)
/*
{ \
if(!(expr)) \
*/
#else
#define LWIP_PLATFORM_ASSERT(expr)
+#define CC_ASSERT(message, assertion)
#endif /* DEBUG */
/* "lightweight" synchronization mechanisms */