--------------------------------------------------------------
| 128 | |
| 129 | //-------------------------------------------------------------- |
| 130 | void ofApp::loadScript(std::string &script) { |
| 131 | // exit, reinit the lua state, and load the script |
| 132 | lua.scriptExit(); |
| 133 | lua.init(); // abort on error |
| 134 | lua.doScript(script, true); |
| 135 | lua.scriptSetup(); |
| 136 | } |
| 137 | |
| 138 | void ofApp::reloadScript() { |
| 139 | loadScript(scripts[currentScript]); |
nothing calls this directly
no test coverage detected