MCPcopy Create free account
hub / github.com/danomatika/ofxLua / scriptExit

Method scriptExit

src/ofxLua.cpp:273–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273void ofxLua::scriptExit() {
274 if(L == NULL || !isFunction("exit")) {
275 return;
276 }
277 lua_getglobal(L, "exit");
278 if(lua_pcall(L, 0, 0, 0) != 0) {
279 std::string msg = "Error running exit(): "
280 + (std::string) lua_tostring(L, LUA_STACK_TOP);
281 errorOccurred(msg);
282 }
283}
284
285//--------------------------------------------------------------------
286void ofxLua::scriptWindowResized(int w, int h) {

Callers 4

exitMethod · 0.80
keyPressedMethod · 0.80
exitMethod · 0.80
loadScriptMethod · 0.80

Calls 1

lua_getglobalFunction · 0.85

Tested by

no test coverage detected