Files
xmr-stak/jext.h
T
2017-01-02 12:51:13 +00:00

14 lines
310 B
C++

#pragma once
using namespace rapidjson;
/* This macro brings rapidjson more in line with other libs */
inline const Value* GetObjectMember(const Value& obj, const char* key)
{
Value::ConstMemberIterator itr = obj.FindMember(key);
if (itr != obj.MemberEnd())
return &itr->value;
else
return nullptr;
}