This repository has been archived by the owner on Nov 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflecs_rest.h
99 lines (75 loc) · 2.14 KB
/
flecs_rest.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#define flecs_rest_STATIC
#ifndef FLECS_SYSTEMS_REST_H
#define FLECS_SYSTEMS_REST_H
/* This generated file contains includes for project dependencies */
/*
)
(.)
.|.
| |
_.--| |--._
.-'; ;`-'& ; `&.
\ & ; & &_/
|"""---...---"""|
\ | | | | | | | /
`---.|.|.|.---'
* This file is generated by bake.lang.c for your convenience. Headers of
* dependencies will automatically show up in this file. Include bake_config.h
* in your main project file. Do not edit! */
#ifndef FLECS_REST_BAKE_CONFIG_H
#define FLECS_REST_BAKE_CONFIG_H
/* Headers of public dependencies */
#include <flecs.h>
#include <flecs_components_http.h>
#include <flecs_meta.h>
#include <flecs_json.h>
/* Convenience macro for exporting symbols */
#ifndef flecs_rest_STATIC
#if flecs_rest_EXPORTS && (defined(_MSC_VER) || defined(__MINGW32__))
#define FLECS_REST_API __declspec(dllexport)
#elif flecs_rest_EXPORTS
#define FLECS_REST_API __attribute__((__visibility__("default")))
#elif defined _MSC_VER
#define FLECS_REST_API __declspec(dllimport)
#else
#define FLECS_REST_API
#endif
#else
#define FLECS_REST_API
#endif
#endif
#ifndef FLECS_LEGACY
ECS_STRUCT(EcsRestServer, {
int16_t port;
});
#endif
#ifdef __cplusplus
extern "C" {
#endif
typedef struct FlecsRest {
ECS_DECLARE_COMPONENT(EcsRestServer);
} FlecsRest;
FLECS_REST_API
void FlecsRestImport(
ecs_world_t *world);
#define FlecsRestImportHandles(handles) \
ECS_IMPORT_COMPONENT(handles, EcsRestServer);
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
#ifndef FLECS_NO_CPP
namespace flecs {
class rest : public FlecsRest {
public:
using Server = EcsRestServer;
rest(flecs::world& world) {
FlecsRestImport(world.c_ptr());
flecs::module<flecs::rest>(world, "flecs::rest");
flecs::component<Server>(world, "Server");
}
};
}
#endif // FLECS_NO_CPP
#endif // __cplusplus
#endif