mirror of
https://github.com/nlohmann/json.git
synced 2026-02-24 04:16:26 +00:00
🏗️ adding anonymous namespace
This commit is contained in:
@@ -34,12 +34,15 @@ SOFTWARE.
|
||||
using nlohmann::json;
|
||||
#undef private
|
||||
|
||||
namespace
|
||||
{
|
||||
// shortcut to scan a string literal
|
||||
json::lexer::token_type scan_string(const char* s);
|
||||
json::lexer::token_type scan_string(const char* s)
|
||||
{
|
||||
return json::lexer(nlohmann::detail::input_adapter(s)).scan();
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("lexer class")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user