Mercurial > hg > orthanc
diff Core/Lua/LuaFunctionCall.h @ 2443:c149cee81250
possibility to subclass LuaFunctionCall
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 06 Dec 2017 14:44:12 +0100 |
parents | a3a65de1840f |
children | 878b59270859 |
line wrap: on
line diff
--- 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);