mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
ircd::json::value: Inline trivial indirections.
This commit is contained in:
parent
5774c849bb
commit
9f09eb6581
2 changed files with 12 additions and 12 deletions
|
@ -348,3 +348,15 @@ ircd::json::operator!=(const value &a, const value &b)
|
|||
{
|
||||
return !operator==(a, b);
|
||||
}
|
||||
|
||||
inline bool
|
||||
ircd::json::defined(const value &a)
|
||||
{
|
||||
return !a.undefined();
|
||||
}
|
||||
|
||||
inline enum ircd::json::type
|
||||
ircd::json::type(const value &a)
|
||||
{
|
||||
return static_cast<enum json::type>(a.type);
|
||||
}
|
||||
|
|
12
ircd/json.cc
12
ircd/json.cc
|
@ -4081,18 +4081,6 @@ ircd::json::serialized(const bool &b)
|
|||
return b? t : f;
|
||||
}
|
||||
|
||||
bool
|
||||
ircd::json::defined(const value &a)
|
||||
{
|
||||
return !a.undefined();
|
||||
}
|
||||
|
||||
enum ircd::json::type
|
||||
ircd::json::type(const value &a)
|
||||
{
|
||||
return static_cast<enum json::type>(a.type);
|
||||
}
|
||||
|
||||
//
|
||||
// value::value
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue