Skip to content

Commit

Permalink
🐛 Fix traverse policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharp0802 committed Jan 28, 2025
1 parent ece3c8b commit e62b091
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions mllif/Backend/C++/lib/CxxDeclGen.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ bool mllif::cxx::CxxDeclGen::handleAssemblyBegin(MLLIFContext &context, const As
"#include <cstdint>\n";
return true;
}

bool mllif::cxx::CxxDeclGen::handleObjectBegin(MLLIFContext &context, const ObjectDecl &node, std::ostream &out, std::size_t indent) {

out << Indent(indent) << "class " << node.name() << ";\n";
Expand Down
4 changes: 2 additions & 2 deletions mllif/Backend/Shared/lib/WrapperGen.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ bool mllif::WrapperGen::handleDecl(MLLIFContext &context, const std::shared_ptr<
auto &child = decl->children()[i]; \
if (cond) { \
context.error(msg); \
break; \
continue; \
} \
if (!handleDecl(context, child, out, indent + 1 + I)) { \
break; \
continue; \
} \
__VA_ARGS__ \
} \
Expand Down

0 comments on commit e62b091

Please sign in to comment.