| 271 | } |
| 272 | |
| 273 | void 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 | //-------------------------------------------------------------------- |
| 286 | void ofxLua::scriptWindowResized(int w, int h) { |
no test coverage detected