diff --git a/include/chaiscript/language/chaiscript_parser.hpp b/include/chaiscript/language/chaiscript_parser.hpp index f311286c..848296c9 100644 --- a/include/chaiscript/language/chaiscript_parser.hpp +++ b/include/chaiscript/language/chaiscript_parser.hpp @@ -118,7 +118,7 @@ namespace chaiscript } - template + template class ChaiScript_Parser final : public ChaiScript_Parser_Base { void *get_tracer_ptr() override { return &m_tracer; @@ -128,7 +128,7 @@ namespace chaiscript struct Depth_Counter { - static const auto max_depth = 128; + static const auto max_depth = Parse_Depth; Depth_Counter(ChaiScript_Parser *t_parser) : parser(t_parser) { ++parser->m_current_parse_depth;