summaryrefslogtreecommitdiffstats
path: root/jext.h
blob: dce73a0e9d8a3153c42288642c29ac847d590e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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;
}
OpenPOWER on IntegriCloud