hello world

Fork of lmic_MOTE_L152RC by Semtech

Revision:
11:671d85a0f15b
Parent:
0:f2716e543d97
--- a/debug.h	Wed Oct 21 01:03:34 2015 +0000
+++ b/debug.h	Tue Feb 09 00:28:59 2016 +0000
@@ -23,6 +23,24 @@
     va_end(args);
 }
 
+#define NDEBUG
+#ifndef NDEBUG
+
+/** Output a debug message
+ * 
+ * @param format printf-style format string, followed by variables
+ */
+static inline void debugSW(const char *format, ...) {
+    va_list args;
+    va_start(args, format);
+    vfprintf(stderr, format, args);
+    va_end(args);
+}
+
+#else
+static inline void debugSW(const char *format, ...) {}
+#endif
+
 // intialize debug library
 void debug_init (void);