R jasm/syntax/syntax_state.cpp => +0 -14
@@ 1,14 0,0 @@
-#include "pch.h"
-
-#include <syntax/syntax_state.h>
-
-namespace jasm
-{
-
-SyntaxState::SyntaxState()
- : macro_depth(0)
- , subroutine_depth(0)
-{
-}
-
-}
M jasm/syntax/syntax_state.h +2 -4
@@ 9,11 9,9 @@ namespace jasm
/// This class keeps the state of the syntax analysis that persists between statements.
struct SyntaxState
{
- SyntaxState();
-
std::set<uint64_t> sections; ///< Set with string hashes for section names, used to detect duplicate names.
- int macro_depth; ///< Number of nested macro definitions.
- int subroutine_depth; ///< Number of nested subroutine definitions (only one allowed).
+ int macro_depth = 0; ///< Number of nested macro definitions.
+ int subroutine_depth = 0; ///< Number of nested subroutine definitions (only one allowed).
};
/// @}