comparison libmlk-core/mlk/core/action-script.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 75944708c55c
comparison
equal deleted inserted replaced
516:6af0524913b3 517:6e8f6640e05b
43 * ::mlk_action_script_draw in your game loop until it completes. 43 * ::mlk_action_script_draw in your game loop until it completes.
44 */ 44 */
45 45
46 #include <stddef.h> 46 #include <stddef.h>
47 47
48 #include "core.h"
49
50 struct mlk_action; 48 struct mlk_action;
51 49
52 union mlk_event; 50 union mlk_event;
53 51
54 /** 52 /**
88 * Index of current action. 86 * Index of current action.
89 */ 87 */
90 size_t current; 88 size_t current;
91 }; 89 };
92 90
93 MLK_CORE_BEGIN_DECLS 91 #if defined(__cplusplus)
92 extern "C" {
93 #endif
94 94
95 /** 95 /**
96 * Initialize the action sequence structure. 96 * Initialize the action sequence structure.
97 * 97 *
98 * This function will effectively reset the length, current and set all actions 98 * This function will effectively reset the length, current and set all actions
182 * \param script the action script structure 182 * \param script the action script structure
183 */ 183 */
184 void 184 void
185 mlk_action_script_finish(struct mlk_action_script *script); 185 mlk_action_script_finish(struct mlk_action_script *script);
186 186
187 MLK_CORE_END_DECLS 187 #if defined(__cplusplus)
188 }
189 #endif
188 190
189 #endif /* !MLK_CORE_ACTION_SCRIPT_H */ 191 #endif /* !MLK_CORE_ACTION_SCRIPT_H */