Mercurial > molko
comparison libmlk-core/mlk/core/drawable-stack.h @ 517:6e8f6640e05b
misc: use extern C manually
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 04 Mar 2023 14:23:59 +0100 |
parents | 6af0524913b3 |
children | 47f0fe6f6581 |
comparison
equal
deleted
inserted
replaced
516:6af0524913b3 | 517:6e8f6640e05b |
---|---|
19 #ifndef MLK_CORE_DRAWABLE_STACK_H | 19 #ifndef MLK_CORE_DRAWABLE_STACK_H |
20 #define MLK_CORE_DRAWABLE_STACK_H | 20 #define MLK_CORE_DRAWABLE_STACK_H |
21 | 21 |
22 #include <stddef.h> | 22 #include <stddef.h> |
23 | 23 |
24 #include "core.h" | |
25 | |
26 struct mlk_drawable_stack { | 24 struct mlk_drawable_stack { |
27 struct mlk_drawable **objects; | 25 struct mlk_drawable **objects; |
28 size_t objectsz; | 26 size_t objectsz; |
29 }; | 27 }; |
30 | 28 |
31 MLK_CORE_BEGIN_DECLS | 29 #if defined(__cplusplus) |
30 extern "C" { | |
31 #endif | |
32 | 32 |
33 void | 33 void |
34 mlk_drawable_stack_init(struct mlk_drawable_stack *); | 34 mlk_drawable_stack_init(struct mlk_drawable_stack *); |
35 | 35 |
36 int | 36 int |
46 mlk_drawable_stack_completed(const struct mlk_drawable_stack *); | 46 mlk_drawable_stack_completed(const struct mlk_drawable_stack *); |
47 | 47 |
48 void | 48 void |
49 mlk_drawable_stack_finish(struct mlk_drawable_stack *); | 49 mlk_drawable_stack_finish(struct mlk_drawable_stack *); |
50 | 50 |
51 MLK_CORE_END_DECLS | 51 #if defined(__cplusplus) |
52 } | |
53 #endif | |
52 | 54 |
53 #endif /* !MLK_CORE_DRAWABLE_STACK_H */ | 55 #endif /* !MLK_CORE_DRAWABLE_STACK_H */ |