mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 01:45:35 -05:00
fix codegen docs and update broma
This commit is contained in:
parent
c397c297f5
commit
a385cd2d5e
2 changed files with 3 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue