| 76 | explicit StackHeightChecker(CompilerContext const& _context): |
| 77 | m_context(_context), stackHeight(m_context.stackHeight()) {} |
| 78 | void check() |
| 79 | { |
| 80 | solAssert( |
| 81 | m_context.stackHeight() == stackHeight, |
| 82 | std::string("I sense a disturbance in the stack: ") + std::to_string(m_context.stackHeight()) + " vs " + std::to_string(stackHeight) |
| 83 | ); |
| 84 | } |
| 85 | private: |
| 86 | CompilerContext const& m_context; |
| 87 | unsigned stackHeight; |
no test coverage detected