diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/LuaTask.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/LuaTask.h b/includes/LuaTask.h index 37d64fa..9c495e8 100644 --- a/includes/LuaTask.h +++ b/includes/LuaTask.h @@ -15,11 +15,14 @@ class LuaExecCell { virtual ~LuaExecCell() { } void detach() { m_detached = true; } void exec(LuaMainTask * mainTask); + bool gotError() { return m_gotError; } protected: virtual void run(Lua &) = 0; + void setError() { m_gotError = true; } private: Events::Async m_event; bool m_detached = false; + bool m_gotError = false; friend class LuaTask; }; |