From 145acd378bd57ef0c623971d2504cf6e9ea86e8f Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Tue, 29 May 2018 07:09:25 -0600 Subject: [PATCH] Take parse depth to 512, make it templated Closes #442 --- include/chaiscript/language/chaiscript_parser.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;