| 229 | } |
| 230 | |
| 231 | inline rapidjson::Value toValue(lua_State* L, int idx, Allocator& allocator) { |
| 232 | return details::toValue(L, idx, 0, allocator); |
| 233 | } |
| 234 | |
| 235 | inline void toDocument(lua_State* L, int idx, rapidjson::Document* doc) { |
| 236 | details::toValue(L, idx, 0, doc->GetAllocator()).Swap(*doc); |