picofuse

debugf.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include "printf.h"
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
25 #ifndef NDEBUG
26 
27 void _sys_debugf_impl(const char *context, const char *format, ...);
29 #define sys_debugf(context, format, ...) \
30  _sys_debugf_impl(context, format, ##__VA_ARGS__)
31 #else
32 #define sys_debugf(context, format, ...) ((void)0)
33 #endif
34 
35 #ifdef __cplusplus
36 }
37 #endif
Defines formatted output APIs for console and string buffers.