| 35 | } |
| 36 | |
| 37 | void 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 | |
| 46 | bool ScriptWriter::repeat(UInt64 reference) { |
| 47 | bool pushed(start()); |
no outgoing calls
no test coverage detected