JM9 XRCU Board
0.1.1
Libraries API Reference
Loading...
Searching...
No Matches
core_debug.h
1
#ifndef _CORE_DEBUG_H
2
#define _CORE_DEBUG_H
3
4
#include <stdarg.h>
5
#if !defined(NDEBUG)
6
#include <stdio.h>
7
#endif
/* NDEBUG */
8
9
#ifdef __cplusplus
10
extern
"C"
{
11
#endif
12
20
inline
void
core_debug(
const
char
*format, ...)
21
{
22
#if !defined(NDEBUG)
23
va_list args;
24
va_start(args, format);
25
vfprintf(stderr, format, args);
26
va_end(args);
27
#else
28
(void)(format);
29
#endif
/* NDEBUG */
30
}
31
32
inline
void
vcore_debug(
const
char
*format, va_list args)
33
{
34
#if !defined(NDEBUG)
35
vfprintf(stderr, format, args);
36
#else
37
(void)(format);
38
(void)(args);
39
#endif
/* NDEBUG */
40
}
41
42
#ifdef __cplusplus
43
}
44
#endif
45
46
#endif
/* _CORE_DEBUG_H */
cores
arduino
core_debug.h
Generated by
1.13.2