Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2 | Rev 4 | ||
---|---|---|---|
Line 8... | Line 8... | ||
8 | #pragma once |
8 | #pragma once |
9 | 9 | ||
10 | #include <stdarg.h> |
10 | #include <stdarg.h> |
11 | 11 | ||
12 | #define SIMPLE_PRINT |
12 | #define SIMPLE_PRINT |
- | 13 | #ifdef __cplusplus |
|
- | 14 | extern "C" { |
|
- | 15 | #endif |
|
13 | 16 | ||
14 | 17 | ||
15 | 18 | ||
16 | /* copied from some GPL source from 2001 */ |
19 | /* copied from some GPL source from 2001 */ |
17 | /* for explanation of the __attribute__ here see e.g https://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html */ |
20 | /* for explanation of the __attribute__ here see e.g https://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html */ |
18 | extern int __attribute__ ((format (printf, 1, 2))) small_printf(const char *format, ...); |
21 | extern int __attribute__ ((format (printf, 1, 2))) small_printf(const char *format, ...); |
19 | extern int __attribute__ ((format (printf, 2, 3))) small_sprintf(char *out, const char *format, ...); |
22 | extern int __attribute__ ((format (printf, 2, 3))) small_sprintf(char *out, const char *format, ...); |
- | 23 | ||
- | 24 | #ifdef __cplusplus |
|
- | 25 | } |
|
- | 26 | #endif |