1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
40
41
42
43
44
45
46
47
48
49
50
51
56
57
58
59
60
61
62
63
64
65
67
68
71
72
80
81
82
83
87
88
89
90
91
92
93
#ifndef _PICO_PRINTF_H
#define _PICO_PRINTF_H
/* ... */
#ifdef __cplusplus
extern "C" {
#endif
#include "pico.h"
#include <stdio.h>
#include <stdarg.h>
#ifndef PICO_PRINTF_ALWAYS_INCLUDED
#ifndef NDEBUG
#define PICO_PRINTF_ALWAYS_INCLUDED 1
#else
#define PICO_PRINTF_ALWAYS_INCLUDED 0
#endif/* ... */
#endif
#if LIB_PICO_PRINTF_PICO
#if !PICO_PRINTF_ALWAYS_INCLUDED
bool __printflike(1, 0) weak_raw_printf(const char *fmt, ...);
bool weak_raw_vprintf(const char *fmt, va_list args);/* ... */
#else
#define weak_raw_printf(...) ({printf(__VA_ARGS__); true;})
#define weak_raw_vprintf(fmt,va) ({vprintf(fmt,va); true;})
/* ... */#endif
/* ... */
int vfctprintf(void (*out)(char character, void *arg), void *arg, const char *format, va_list va);
/* ... */
#else
#define weak_raw_printf(...) ({printf(__VA_ARGS__); true;})
#define weak_raw_vprintf(fmt,va) ({vprintf(fmt,va); true;})
/* ... */
#endif
#ifdef __cplusplus
}extern "C" { ... }
#endif
/* ... */
#endif