Skip to content

Commit

Permalink
Fix unhappy MSVC compiler on special toekens
Browse files Browse the repository at this point in the history
  • Loading branch information
greenozon committed Mar 11, 2024
1 parent 28fdb90 commit 6bae7e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ASTNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -609,15 +609,15 @@ class ASTIterBlock : public ASTBlock {

class ASTContainerBlock : public ASTBlock {
public:
ASTContainerBlock(int _finally, int _except = 0)
: ASTBlock(ASTBlock::BLK_CONTAINER, 0), m_finally(_finally), m_except(_except) { }
ASTContainerBlock(int finally_, int except_ = 0)
: ASTBlock(ASTBlock::BLK_CONTAINER, 0), m_finally(finally_), m_except(except_) { }

bool hasFinally() const { return m_finally != 0; }
bool hasExcept() const { return m_except != 0; }
int finally() const { return m_finally; }
int except() const { return m_except; }

void setExcept(int _except) { m_except = _except; }
void setExcept(int except_) { m_except = except_; }

private:
int m_finally;
Expand Down

0 comments on commit 6bae7e6

Please sign in to comment.