MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / end

Method end

MonaServer/sources/ScriptWriter.cpp:162–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162void ScriptWriter::end() {
163 if (_layers.empty())
164 return;
165 int& type = _layers.back();
166 if (type >= -1) // mixed, object or array
167 lua_rawset(_pState, -3);
168 else if (type == -2) { // map value
169 lua_rawset(_pState, -3);
170 --type;
171 } else // map key
172 ++type;
173}
174
175void ScriptWriter::endComplex() {
176 if(_layers.empty()) {

Callers 3

openMethod · 0.45
sendMethod · 0.45
onDataMethod · 0.45

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected