1
0
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:
Niels Lohmann
2019-07-01 22:37:30 +02:00
parent 025f4cea42
commit 90798caa62
18 changed files with 2541 additions and 2537 deletions

View File

@@ -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