Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: DS130x_I2CApp MCP41xxxApp FM24Vxx_I2CApp MCP320xApp ... more
Revision 3:be0c7a9bd686, committed 2010-11-24
- Comitter:
- Yann
- Date:
- Wed Nov 24 12:30:18 2010 +0000
- Parent:
- 2:12cc94a627cf
- Child:
- 4:d03fcf494eb6
- Commit message:
- V0.0.4
Changed in this revision
| Debug.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Debug.h Mon Nov 22 11:36:57 2010 +0000
+++ b/Debug.h Wed Nov 24 12:30:18 2010 +0000
@@ -27,7 +27,7 @@
/** The steps below describe how to use this library:
* 1. Import this library to your project 'As file', because you will need to modify this file as described in step 2
* 2. Edit this library
- * 3. Remove comment from line 57 (search for '//#define __DEBUG' in this file) to get the DEBUG macro defimed properly. By default, __DEBUG flahg is undef
+ * 3. Remove comment from line 58 (search for '//#define __DEBUG' in this file) to get the DEBUG macro defimed properly. By default, __DEBUG flahg is undef
* 4. Rebuild this library and use the debug macro as decribe in sample code
*
* IMPORTANT: If you modify this libray, please keep this comment up to date for future users
@@ -54,17 +54,17 @@
* }
* @endcode
*/
-//#undef __DEBUG //<!To deactivate debug message
-#define __DEBUG //<!To activate debug message
+#undef __DEBUG //<! Undefined debug flah, default value
+//#define __DEBUG //<! Uncomment this line to activate debug macros
-// Undefined DEBUG symbols to be sure to use mines
+// Undefined DEBUG symbols to be sure to use mine
#undef DEBUG_ENTER
#undef DEBUG_LEAVE
#undef DEBUG
#ifdef __DEBUG
-/** This class implements debug functionalities based on USB console interface. V0.0.0.3
+/** This class implements debug functionalities based on USB console interface. V0.0.0.4
*
* Note that this class is based on Helper pattern
*/
@@ -79,12 +79,12 @@
static void BreakPoint(const char* file, int line);
}; // End of class DebugHelper
-/** Used to log function/method entry (>>)
+/** Used to log function/method entry (>> )
*
* Note that \ for multiline macro is not supported yet
*/
#define DEBUG_ENTER(...) do { DebugHelper::Debug(">> "); DebugHelper::Debug(__VA_ARGS__); DebugHelper::Debug("\r\n"); } while(false);
-/** Used to log function end of function/method (<<)
+/** Used to log function end of function/method (<< )
*
* Note that \ for multiline macro is not supported yet
*/