@@ -139,35 +139,37 @@ private:
139
139
}
140
140
};
141
141
142
- [[nodiscard]] inline auto connect ( //
142
+ [[nodiscard]] ECSACT_ALWAYS_INLINE auto connect (
143
143
const std::string& connection_string
144
144
) -> ecsact_async_request_id {
145
145
return ecsact_async_connect (connection_string.c_str ());
146
146
}
147
147
148
- inline auto disconnect () -> void {
148
+ ECSACT_ALWAYS_INLINE auto disconnect () -> void {
149
149
ecsact_async_disconnect ();
150
150
}
151
151
152
- [[nodiscard]] inline auto get_current_tick () -> int32_t {
152
+ [[nodiscard]] ECSACT_ALWAYS_INLINE auto get_current_tick () -> int32_t {
153
153
return ecsact_async_get_current_tick ();
154
154
}
155
155
156
- [[nodiscard]] inline auto enqueue_execution_options (
156
+ [[nodiscard]] ECSACT_ALWAYS_INLINE auto enqueue_execution_options (
157
157
ecsact::core::execution_options& options
158
158
) -> ecsact_async_request_id {
159
159
return ecsact_async_enqueue_execution_options (options.c ());
160
160
}
161
161
162
- inline auto flush_events () -> void {
162
+ ECSACT_ALWAYS_INLINE auto flush_events () -> void {
163
163
ecsact_async_flush_events (nullptr , nullptr );
164
164
}
165
165
166
166
template <typename ExecutionEventsCollector>
167
167
requires (std::convertible_to<
168
168
decltype (std::declval<ExecutionEventsCollector>().c()),
169
169
const ecsact_execution_events_collector>)
170
- inline auto flush_events(ExecutionEventsCollector&& evc) -> void {
170
+ ECSACT_ALWAYS_INLINE auto flush_events( //
171
+ ExecutionEventsCollector&& evc
172
+ ) -> void {
171
173
const ecsact_execution_events_collector evc_c = evc.c ();
172
174
ecsact_async_flush_events (&evc_c, nullptr );
173
175
}
@@ -176,13 +178,15 @@ template<typename AsyncEventsCollector>
176
178
requires (std::convertible_to<
177
179
decltype (std::declval<AsyncEventsCollector>().c()),
178
180
const ecsact_async_events_collector>)
179
- inline auto flush_events(AsyncEventsCollector&& async_evc) -> void {
181
+ ECSACT_ALWAYS_INLINE auto flush_events( //
182
+ AsyncEventsCollector&& async_evc
183
+ ) -> void {
180
184
const ecsact_async_events_collector async_evc_c = async_evc.c ();
181
185
ecsact_async_flush_events (nullptr , &async_evc_c);
182
186
}
183
187
184
188
template <typename ExecutionEventsCollector, typename AsyncEventsCollector>
185
- inline auto flush_events (
189
+ ECSACT_ALWAYS_INLINE auto flush_events (
186
190
ExecutionEventsCollector&& evc,
187
191
AsyncEventsCollector&& async_evc
188
192
) -> void {
0 commit comments