Add missing undefined symbols to be sure to use mine
Dependents: DS130x_I2CApp MCP41xxxApp FM24Vxx_I2CApp MCP320xApp ... more
Diff: Debug.h
- Revision:
- 2:12cc94a627cf
- Parent:
- 1:fbb7a9674868
- Child:
- 3:be0c7a9bd686
--- a/Debug.h Mon Nov 22 08:50:04 2010 +0000
+++ b/Debug.h Mon Nov 22 11:36:57 2010 +0000
@@ -54,8 +54,8 @@
* }
* @endcode
*/
-#undef __DEBUG //<!To deactivate debug message
-//#define __DEBUG //<!To activate debug message
+//#undef __DEBUG //<!To deactivate debug message
+#define __DEBUG //<!To activate debug message
// Undefined DEBUG symbols to be sure to use mines
#undef DEBUG_ENTER
@@ -64,7 +64,7 @@
#ifdef __DEBUG
-/** This class implements debug functionalities based on USB console interface. V0.0.0.2
+/** This class implements debug functionalities based on USB console interface. V0.0.0.3
*
* Note that this class is based on Helper pattern
*/
@@ -98,7 +98,7 @@
*
* Note that \ for multiline macro is not supported yet
*/
-#define DEBUG_ERRPOR(...) do { DebugHelper::Debug("?? "); DebugHelper::Debug(__VA_ARGS__); DebugHelper::Debug("\r\n"); } while(false);
+#define DEBUG_ERROR(...) do { DebugHelper::Debug("?? "); DebugHelper::Debug(__VA_ARGS__); DebugHelper::Debug("\r\n"); } while(false);
/** Used to log a warning message (!! )
*
* Note that \ for multiline macro is not supported yet
@@ -124,9 +124,9 @@
/** Undefine DEBUG macro, used when __DEBUG is undefined
*/
#define DEBUG(...)
-/** Undefine DEBUG_ERRPOR macro, used when __DEBUG is undefined
+/** Undefine DEBUG_ERROR macro, used when __DEBUG is undefined
*/
-#define DEBUG_ERRPOR(...)
+#define DEBUG_ERROR(...)
/** Undefine DEBUG_WARNING macro, used when __DEBUG is undefined
*/
#define DEBUG_WARNING(...)
Yann Garcia