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

Method clear

MonaServer/sources/ScriptWriter.cpp:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void ScriptWriter::clear() {
38 lua_pop(_pState, lua_gettop(_pState) - _top);
39 _layers.clear();
40 // clear references
41 for (int reference : _references)
42 luaL_unref(_pState, LUA_REGISTRYINDEX, reference);
43 _references.clear();
44}
45
46bool ScriptWriter::repeat(UInt64 reference) {
47 bool pushed(start());

Callers 4

stopMethod · 0.45
WriteMethod · 0.45
sendMethod · 0.45
onDisconnectionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected