Mercurial > molko
comparison libmlk-core/mlk/core/action.h @ 517:6e8f6640e05b
misc: use extern C manually
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 04 Mar 2023 14:23:59 +0100 |
parents | a11cd7ea3a37 |
children |
comparison
equal
deleted
inserted
replaced
516:6af0524913b3 | 517:6e8f6640e05b |
---|---|
31 * - Can be drawn. | 31 * - Can be drawn. |
32 * | 32 * |
33 * Most more high level objects can handle actions to add flexibility (like in | 33 * Most more high level objects can handle actions to add flexibility (like in |
34 * battles, maps, etc). | 34 * battles, maps, etc). |
35 */ | 35 */ |
36 | |
37 #include "core.h" | |
38 | 36 |
39 union mlk_event; | 37 union mlk_event; |
40 | 38 |
41 /** | 39 /** |
42 * \struct mlk_action | 40 * \struct mlk_action |
116 * \param self this action | 114 * \param self this action |
117 */ | 115 */ |
118 void (*finish)(struct mlk_action *); | 116 void (*finish)(struct mlk_action *); |
119 }; | 117 }; |
120 | 118 |
121 MLK_CORE_BEGIN_DECLS | 119 #if defined(__cplusplus) |
120 extern "C" { | |
121 #endif | |
122 | 122 |
123 /** | 123 /** |
124 * Invoke ::mlk_action::start function if not null. | 124 * Invoke ::mlk_action::start function if not null. |
125 * | 125 * |
126 * \pre action != NULL | 126 * \pre action != NULL |
174 * \param action the action | 174 * \param action the action |
175 */ | 175 */ |
176 void | 176 void |
177 mlk_action_finish(struct mlk_action *action); | 177 mlk_action_finish(struct mlk_action *action); |
178 | 178 |
179 MLK_CORE_END_DECLS | 179 #if defined(__cplusplus) |
180 } | |
181 #endif | |
180 | 182 |
181 #endif /* !MLK_CORE_ACTION_H */ | 183 #endif /* !MLK_CORE_ACTION_H */ |