Mercurial > molko
comparison libmlk-ui/mlk/ui/debug.h @ 517:6e8f6640e05b
misc: use extern C manually
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 04 Mar 2023 14:23:59 +0100 |
parents | d49a05e7a5b5 |
children | 2c5514927166 |
comparison
equal
deleted
inserted
replaced
516:6af0524913b3 | 517:6e8f6640e05b |
---|---|
19 #ifndef MLK_UI_DEBUG_H | 19 #ifndef MLK_UI_DEBUG_H |
20 #define MLK_UI_DEBUG_H | 20 #define MLK_UI_DEBUG_H |
21 | 21 |
22 #include <stdarg.h> | 22 #include <stdarg.h> |
23 | 23 |
24 #include <mlk/core/core.h> | |
25 #include <mlk/core/font.h> | |
26 | |
27 #define MLK_DEBUG_LINE_MAX 256 | 24 #define MLK_DEBUG_LINE_MAX 256 |
28 | 25 |
29 struct mlk_theme; | 26 struct mlk_theme; |
30 | 27 |
31 struct mlk_debug_options { | 28 struct mlk_debug_options { |
34 | 31 |
35 struct mlk_debug_report { | 32 struct mlk_debug_report { |
36 unsigned int count; | 33 unsigned int count; |
37 }; | 34 }; |
38 | 35 |
39 MLK_CORE_BEGIN_DECLS | 36 extern struct mlk_debug_options mlk_debug_options; |
40 | 37 |
41 extern struct mlk_debug_options mlk_debug_options; | 38 #if defined(__cplusplus) |
39 extern "C" { | |
40 #endif | |
42 | 41 |
43 void | 42 void |
44 mlk_debugf(struct mlk_debug_report *, const char *, ...); | 43 mlk_debugf(struct mlk_debug_report *, const char *, ...); |
45 | 44 |
46 void | 45 void |
47 mlk_debugva(struct mlk_debug_report *, const char *, va_list); | 46 mlk_debugva(struct mlk_debug_report *, const char *, va_list); |
48 | 47 |
49 MLK_CORE_END_DECLS | 48 #if defined(__cplusplus) |
49 } | |
50 #endif | |
50 | 51 |
51 #endif /* !MLK_UI_DEBUG_H */ | 52 #endif /* !MLK_UI_DEBUG_H */ |