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

Method repeat

MonaServer/sources/ScriptWriter.cpp:46–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46bool ScriptWriter::repeat(UInt64 reference) {
47 bool pushed(start());
48 lua_rawgeti(_pState, LUA_REGISTRYINDEX,(int)reference);
49 if (lua_isnil(_pState, -1)) {
50 lua_pop(_pState, pushed ? 2 : 1);
51 return false;
52 }
53 end();
54 return true;
55}
56
57UInt64 ScriptWriter::writeDate(const Date& date) {
58 start();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected