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 e6539d3 commit 0084f28Copy full SHA for 0084f28
ecsact/cpp_codegen_plugin_util.hh
@@ -188,12 +188,24 @@ auto block( //
188
189
auto block( //
190
ecsact::codegen_plugin_context& ctx,
191
- auto&& block_prefix,
+ auto&& block_head,
192
std::invocable auto&& block_body_fn
193
) {
194
- ctx.write(block_prefix, " ");
+ ctx.write(block_head, " ");
195
auto printer = block_printer{ctx};
196
block_body_fn();
197
}
198
199
+auto block( //
200
+ ecsact::codegen_plugin_context& ctx,
201
202
+ std::invocable auto&& block_body_fn,
203
+ auto&& block_tail
204
+) {
205
206
+ auto printer = block_printer{ctx};
207
+ block_body_fn();
208
+ ctx.write(block_tail);
209
+}
210
+
211
} // namespace ecsact::cpp_codegen_plugin_util
0 commit comments