mirror of
https://github.com/nlohmann/json.git
synced 2025-08-09 05:22:48 +03:00
🚚 rename Hedley macros
This commit is contained in:
@@ -47,7 +47,7 @@ class exception : public std::exception
|
||||
{
|
||||
public:
|
||||
/// returns the explanatory string
|
||||
NLOHMANN_JSON_HEDLEY_RETURNS_NON_NULL
|
||||
JSON_HEDLEY_RETURNS_NON_NULL
|
||||
const char* what() const noexcept override
|
||||
{
|
||||
return m.what();
|
||||
@@ -57,7 +57,7 @@ class exception : public std::exception
|
||||
const int id;
|
||||
|
||||
protected:
|
||||
NLOHMANN_JSON_HEDLEY_NON_NULL(3)
|
||||
JSON_HEDLEY_NON_NULL(3)
|
||||
exception(int id_, const char* what_arg) : id(id_), m(what_arg) {}
|
||||
|
||||
static std::string name(const std::string& ename, int id_)
|
||||
@@ -210,7 +210,7 @@ class invalid_iterator : public exception
|
||||
}
|
||||
|
||||
private:
|
||||
NLOHMANN_JSON_HEDLEY_NON_NULL(3)
|
||||
JSON_HEDLEY_NON_NULL(3)
|
||||
invalid_iterator(int id_, const char* what_arg)
|
||||
: exception(id_, what_arg) {}
|
||||
};
|
||||
@@ -264,7 +264,7 @@ class type_error : public exception
|
||||
}
|
||||
|
||||
private:
|
||||
NLOHMANN_JSON_HEDLEY_NON_NULL(3)
|
||||
JSON_HEDLEY_NON_NULL(3)
|
||||
type_error(int id_, const char* what_arg) : exception(id_, what_arg) {}
|
||||
};
|
||||
|
||||
@@ -311,7 +311,7 @@ class out_of_range : public exception
|
||||
}
|
||||
|
||||
private:
|
||||
NLOHMANN_JSON_HEDLEY_NON_NULL(3)
|
||||
JSON_HEDLEY_NON_NULL(3)
|
||||
out_of_range(int id_, const char* what_arg) : exception(id_, what_arg) {}
|
||||
};
|
||||
|
||||
@@ -349,7 +349,7 @@ class other_error : public exception
|
||||
}
|
||||
|
||||
private:
|
||||
NLOHMANN_JSON_HEDLEY_NON_NULL(3)
|
||||
JSON_HEDLEY_NON_NULL(3)
|
||||
other_error(int id_, const char* what_arg) : exception(id_, what_arg) {}
|
||||
};
|
||||
} // namespace detail
|
||||
|
Reference in New Issue
Block a user