MCPcopy Create free account
hub / github.com/Tencent/UnLua / Document_set

Function Document_set

Plugins/UnLuaExtensions/LuaRapidjson/Source/src/Document.cpp:114–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114static int Document_set(lua_State* L) {
115 Document* doc = Userdata<Document>::check(L, 1);
116 Pointer ptr(luaL_checkstring(L, 2));
117 Value v = values::toValue(L, 3, doc->GetAllocator());
118
119 ptr.Set(*doc, v, doc->GetAllocator());
120
121 return 0;
122}
123
124/**
125 * local jsonstr = doc:stringify({pretty=false})

Callers

nothing calls this directly

Calls 3

checkFunction · 0.85
toValueFunction · 0.70
SetMethod · 0.45

Tested by

no test coverage detected