Skip to content

Commit

Permalink
Added getter method for std_include in Program astnode. (#79)
Browse files Browse the repository at this point in the history
Co-authored-by: matu67 <[email protected]>
Co-authored-by: James Lambert <[email protected]>
  • Loading branch information
3 people authored Sep 6, 2024
1 parent d908004 commit cad5214
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 cad5214

Please sign in to comment.