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: pyrocommander Projektni_zadatak_Analogni_sat ProjetOctopode
Revision 1:12ff10369961, committed 2012-08-04
- Comitter:
- simon
- Date:
- Sat Aug 04 21:59:29 2012 +0000
- Parent:
- 0:aa1c8e69d98f
- Child:
- 2:24afdea2d903
- Commit message:
- Add basic doxygen api documentation
Changed in this revision
| debug.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/debug.h Sat Aug 04 21:04:21 2012 +0000
+++ b/debug.h Sat Aug 04 21:59:29 2012 +0000
@@ -24,6 +24,10 @@
#include <stdarg.h>
#include <stdio.h>
+/** Output a debug message
+ *
+ * @param format printf-style format string, followed by variables
+ */
static inline void debug(const char *format, ...) {
va_list args;
va_start(args, format);
@@ -31,6 +35,11 @@
va_end(args);
}
+/** Conditionally output a debug message
+ *
+ * @param condition output only if condition is true
+ * @param format printf-style format string, followed by variables
+ */
static inline void debug(bool condition, const char *format, ...) {
if(condition) {
va_list args;