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
25
25
bool validated = false ;
26
26
};
27
27
28
+ inline namespace constants {
29
+
28
30
// By default, we want to limit the depth of nested nodes. You can override this with
29
31
// another value for the depthLimit parameter in these parse functions.
30
32
constexpr std::size_t c_defaultDepthLimit = 25 ;
31
33
34
+ } // namespace constants
35
+
32
36
[[nodiscard(" unnecessary parse" )]] GRAPHQLPEG_EXPORT ast parseSchemaString (
33
37
std::string_view input, std::size_t depthLimit = c_defaultDepthLimit);
34
38
[[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;
16
16
using peg::ast_input;
17
17
using peg::ast;
18
18
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;
24
20
25
21
using peg::parseSchemaString;
26
22
using peg::parseSchemaFile;
You can’t perform that action at this time.
0 commit comments