fix codegen docs and update broma

This commit is contained in:
altalk23 2023-02-18 14:24:24 +03:00
parent c397c297f5
commit a385cd2d5e
2 changed files with 3 additions and 9 deletions

View file

@ -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

View file

@ -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;
}