Skip to content
Flecs v4.1
script_platform.h
Go to the documentation of this file.
1/**
2 * @file addons/script_platform.h
3 * @brief Platform constants for Flecs script.
4 */
5
6#ifdef FLECS_SCRIPT_PLATFORM
7
8#ifndef FLECS_SCRIPT
9#define FLECS_SCRIPT
10#endif
11
12/**
13 * @defgroup c_addons_script_platform Script Platform
14 * @ingroup c_addons
15 * Platform constants for Flecs script.
16 * @{
17 */
18
19#ifndef FLECS_SCRIPT_PLATFORM_H
20#define FLECS_SCRIPT_PLATFORM_H
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26/** Script platform import function.
27 * Usage:
28 * @code
29 * ECS_IMPORT(world, FlecsScriptPlatform)
30 * @endcode
31 *
32 * @param world The world.
33 */
34FLECS_API
35void FlecsScriptPlatformImport(
36 ecs_world_t *world);
37
38#ifdef __cplusplus
39}
40#endif
41
42#endif
43
44/** @} */
45
46#endif
struct ecs_world_t ecs_world_t
A world is the container for all ECS data and supporting features.
Definition flecs.h:439