File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,14 @@ struct [[nodiscard("unnecessary parse")]] ast
2525 bool validated = false ;
2626};
2727
28+ inline namespace constants {
29+
2830// By default, we want to limit the depth of nested nodes. You can override this with
2931// another value for the depthLimit parameter in these parse functions.
3032constexpr std::size_t c_defaultDepthLimit = 25 ;
3133
34+ } // namespace constants
35+
3236[[nodiscard(" unnecessary parse" )]] GRAPHQLPEG_EXPORT ast parseSchemaString (
3337 std::string_view input, std::size_t depthLimit = c_defaultDepthLimit);
3438[[nodiscard(" unnecessary parse" )]] GRAPHQLPEG_EXPORT ast parseSchemaFile (
Original file line number Diff line number Diff line change @@ -16,11 +16,7 @@ using peg::ast_node;
1616using peg::ast_input;
1717using peg::ast;
1818
19- namespace constants {
20-
21- constexpr std::size_t c_defaultDepthLimit = peg::c_defaultDepthLimit;
22-
23- } // namespace constants
19+ constexpr std::size_t c_defaultDepthLimit = constants::c_defaultDepthLimit;
2420
2521using peg::parseSchemaString;
2622using peg::parseSchemaFile;
You can’t perform that action at this time.
0 commit comments