# HG changeset patch # User Sebastien Jodogne # Date 1512567852 -3600 # Node ID c149cee8125025b02a589548c1fba81af129b1f2 # Parent 330349d712f992c70f0893db8a2280c6d624572b possibility to subclass LuaFunctionCall diff -r 330349d712f9 -r c149cee81250 Core/Lua/LuaFunctionCall.h --- a/Core/Lua/LuaFunctionCall.h Tue Dec 05 21:58:09 2017 +0100 +++ b/Core/Lua/LuaFunctionCall.h Wed Dec 06 14:44:12 2017 +0100 @@ -50,8 +50,14 @@ void CheckAlreadyExecuted(); + protected: void ExecuteInternal(int numOutputs); + lua_State* GetState() + { + return context_.lua_; + } + public: LuaFunctionCall(LuaContext& context, const char* functionName);