Robot Agent  1.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
debug.c
Go to the documentation of this file.
1 
11 /* -- Includes -- */
12 /* system libraries */
13 #include <stdio.h>
14 #include <stdlib.h>
15 #include <stdarg.h>
16 /* project libraries */
17 #include "debug.h"
18 #include "config.h"
19 
20 /* -- Defines -- */
21 
22 /* -- Functions -- */
23 
24 
25 void debug_printf(const char *format, ...)
26 {
27 #ifdef s_CONFIG_DEBUG_ENABLE
28 
29  va_list arg;
30  int done;
31 
32  va_start(arg, format);
33  done = printf(format, arg);
34  va_end(arg);
35 
36  return done;
37 
38 #endif
39 }
void debug_printf(const char *format,...)
Definition: debug.c:25