From 6e5697a125973bca83d368364e088777d23f824a Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Wed, 31 Oct 2018 12:40:59 -0400 Subject: Added error handeling function Added an error handeling function to avoid crashes on errors in callbacked handeled code (ex, error in button press) --- src/client/callbackhandeler.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/client/callbackhandeler.hpp') diff --git a/src/client/callbackhandeler.hpp b/src/client/callbackhandeler.hpp index 3d4894f..0728b29 100644 --- a/src/client/callbackhandeler.hpp +++ b/src/client/callbackhandeler.hpp @@ -20,4 +20,7 @@ public: GlobalEventReceiver(IrrlichtDevice* d); bool OnEvent(const irr::SEvent& e); }; + +int errfunc(lua_State *L); +void pusherrorfunc(lua_State *L); //GlobalEventReceiver::GlobalEventReceiver(IrrlichtDevice* d); -- cgit v1.2.3-70-g09d2