Skip to content

Commit

Permalink
Added method to return includes from functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquinffernandez committed Jan 3, 2025
1 parent 03051c9 commit 95bf502
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mmoc/generator/function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,5 +169,7 @@ void Function::addInclude(string include) { _include[include] = include; }

void Function::addInclude(SymbolTable includes) { _include.merge(includes); }

Util::SymbolTable Function::functionIncludes() const { return _include; }

} // namespace Generator
} // namespace MicroModelica
1 change: 1 addition & 0 deletions src/mmoc/generator/function.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class Function {
void setPrefix(std::string prefix);
void addInclude(std::string include);
void addInclude(Util::SymbolTable includes);
Util::SymbolTable functionIncludes() const;

private:
void includes();
Expand Down

0 comments on commit 95bf502

Please sign in to comment.