mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-17 05:41:41 +02:00
17 lines
391 B
C++
17 lines
391 B
C++
#pragma once
|
|
|
|
#include "xmrstak/rapidjson/document.h"
|
|
#include "xmrstak/rapidjson/error/en.h"
|
|
|
|
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;
|
|
}
|