From a385cd2d5e66b8f89fe7656ddb8fd95f7a695680 Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Sat, 18 Feb 2023 14:24:24 +0300 Subject: [PATCH] fix codegen docs and update broma --- codegen/CMakeLists.txt | 2 +- codegen/src/BindingGen.cpp | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/codegen/CMakeLists.txt b/codegen/CMakeLists.txt index f0257203..3112c3ec 100644 --- a/codegen/CMakeLists.txt +++ b/codegen/CMakeLists.txt @@ -4,7 +4,7 @@ project(Codegen LANGUAGES C CXX) include(../cmake/CPM.cmake) CPMAddPackage("gh:fmtlib/fmt#9.1.0") -CPMAddPackage("gh:camila314/Broma#1.0.0") +CPMAddPackage("gh:geode-sdk/Broma#eb45fab") file(GLOB SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp diff --git a/codegen/src/BindingGen.cpp b/codegen/src/BindingGen.cpp index 1351813e..b10af4e6 100644 --- a/codegen/src/BindingGen.cpp +++ b/codegen/src/BindingGen.cpp @@ -130,19 +130,13 @@ std::string generateAddressDocs(Field const& field, FunctionBindField* fn) { } std::string generateDocs(std::string const& docs) { - if (docs.size() > 0) { - std::cout << docs << "\n"; - } if (docs.size() < 7) return ""; - auto ret = docs.substr(1, docs.size() - 5); // i hate this but idk how to generalize + auto ret = docs.substr(1, docs.size() - 6); // i hate this but idk how to generalize for (auto next = ret.find(" "); next != std::string::npos; next = ret.find(" ")) { ret.replace(next, 8, " * "); } - - - std::cout << ret << "\n"; - + return ret; }