We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9af3ce1 commit 74ebca8Copy full SHA for 74ebca8
ecsact/cpp_codegen_plugin_util.hh
@@ -5,6 +5,7 @@
5
#include <vector>
6
#include <string>
7
#include <utility>
8
+#include <concepts>
9
#include "ecsact/codegen_plugin.hh"
10
#include "ecsact/runtime/meta.hh"
11
@@ -177,4 +178,22 @@ public:
177
178
}
179
};
180
181
+auto block( //
182
+ ecsact::codegen_plugin_context& ctx,
183
+ std::invocable auto&& block_body_fn
184
+) {
185
+ auto printer = block_printer{ctx};
186
+ block_body_fn();
187
+}
188
+
189
190
191
+ auto&& block_prefix,
192
193
194
+ ctx.write(block_prefix, " ");
195
196
197
198
199
} // namespace ecsact::cpp_codegen_plugin_util
0 commit comments