Skip to content

Commit

Permalink
Added getter method for std_include in Program astnode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matu67 committed Jul 23, 2024
1 parent 9a98289 commit 6b6bd46
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions qasmtools/include/qasmtools/ast/program.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ class Program : public ASTNode {
*/
std::list<ptr<Stmt>>& body() { return body_; }

/**
* \brief Get whether the standard library has been included
*
* \return Bool for whether the standard library has been included
*/
bool std_include() { return std_include_; }

/**
* \brief Get the number of bits
*
Expand Down

0 comments on commit 6b6bd46

Please sign in to comment.