diff options
author | fireice-uk <fireice2@o2.pl> | 2017-01-02 12:51:13 +0000 |
---|---|---|
committer | fireice-uk <fireice2@o2.pl> | 2017-01-02 12:51:13 +0000 |
commit | 6368ab745532d273775875f16a6053fb79586bc1 (patch) | |
tree | eb472eebbbfc700662e150c7dfe17338678de794 /jext.h | |
parent | 1384d2654117a4e9f5d2e34e74a872f1d551e22b (diff) | |
download | xmr-stak-6368ab745532d273775875f16a6053fb79586bc1.zip xmr-stak-6368ab745532d273775875f16a6053fb79586bc1.tar.gz |
First!
Diffstat (limited to 'jext.h')
-rw-r--r-- | jext.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -0,0 +1,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; +} |