Skip to content

Commit

Permalink
chore: refactor to use new codegen api (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy authored Aug 9, 2024
1 parent 7d900a5 commit 6a6ac7e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "bazel_skylib", version = "1.6.1")
bazel_dep(name = "ecsact_runtime", version = "0.6.7")
bazel_dep(name = "rules_ecsact", version = "0.5.5")
bazel_dep(name = "ecsact_codegen", version = "0.3.1")
bazel_dep(name = "ecsact_codegen", version = "0.4.1")

bazel_dep(name = "ecsact_cli", version = "0.3.15", dev_dependency = True)
bazel_dep(name = "ecsact_cli", version = "0.3.16", dev_dependency = True)
bazel_dep(name = "boost.dll", version = "1.83.0.bzl.2", dev_dependency = True)
bazel_dep(name = "boost.process", version = "1.83.0.bzl.2", dev_dependency = True)
bazel_dep(name = "toolchains_llvm", version = "1.0.0", dev_dependency = True)
Expand Down
2 changes: 1 addition & 1 deletion cpp_header_codegen/cpp_header_codegen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void ecsact_codegen_plugin(
using ecsact::meta::get_system_ids;
using ecsact::meta::get_transient_ids;

ecsact::codegen_plugin_context ctx{package_id, write_fn, report_fn};
ecsact::codegen_plugin_context ctx{package_id, 0, write_fn, report_fn};

ctx.write(GENERATED_FILE_DISCLAIMER);
ctx.write("#pragma once\n\n");
Expand Down
2 changes: 1 addition & 1 deletion cpp_systems_header_codegen/cpp_systems_header_codegen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ void ecsact_codegen_plugin(
ecsact_codegen_write_fn_t write_fn,
ecsact_codegen_report_fn_t report_fn
) {
ecsact::codegen_plugin_context ctx{package_id, write_fn, report_fn};
ecsact::codegen_plugin_context ctx{package_id, 0, write_fn, report_fn};

ctx.write(GENERATED_FILE_DISCLAIMER);
ctx.write("#pragma once\n\n");
Expand Down
2 changes: 1 addition & 1 deletion cpp_systems_source_codegen/cpp_systems_source_codegen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void ecsact_codegen_plugin(
using ecsact::cc_lang_support::c_identifier;
using ecsact::cc_lang_support::cpp_identifier;
using ecsact::meta::get_all_system_like_ids;
ecsact::codegen_plugin_context ctx{package_id, write_fn, report_fn};
ecsact::codegen_plugin_context ctx{package_id, 0, write_fn, report_fn};

ctx.write(GENERATED_FILE_DISCLAIMER);

Expand Down
2 changes: 1 addition & 1 deletion systems_header_codegen/systems_header_codegen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void ecsact_codegen_plugin(
) {
using namespace std::string_literals;

ecsact::codegen_plugin_context ctx{package_id, write_fn, report_fn};
ecsact::codegen_plugin_context ctx{package_id, 0, write_fn, report_fn};
const auto inc_guard_str = make_package_inc_guard_str(package_id);

ctx.write(GENERATED_FILE_DISCLAIMER);
Expand Down

0 comments on commit 6a6ac7e

Please sign in to comment.