| 107 | } |
| 108 | |
| 109 | FORCE_INLINE static int32 GetInt(const Value& node, const char* name, const int32 defaultValue) |
| 110 | { |
| 111 | auto member = node.FindMember(name); |
| 112 | return member != node.MemberEnd() && member->value.IsInt() ? member->value.GetInt() : defaultValue; |
| 113 | } |
| 114 | |
| 115 | template<class T> |
| 116 | FORCE_INLINE static T GetEnum(const Value& node, const char* name, const T defaultValue) |
no test coverage detected