added header files for classes Lua[TLSF]Component and Lua[TLSF]Service
added member function getLuaState() and class LuaStateHandle to access the Lua state from outside with proper locking
split rttlua-* executable implementation into a separate source file rttlua.cpp. The binaries link to the respective component library.
fixed missing lua_pop calls in the call_func() helper function after an error (f600c19)
The patch allows users to inherit from OCL::LuaComponent or OCL::LuaService to build customized Lua-enabled component and service plugins. This is particularly interesting to add operations and either implement them in C++ or forward them to a Lua implementation using the new LuaStateHandle class. It is currently not possible to implement operations in pure Lua.
Lua[TLSF]Component
andLua[TLSF]Service
getLuaState()
and classLuaStateHandle
to access the Lua state from outside with proper lockingrttlua-*
executable implementation into a separate source filerttlua.cpp
. The binaries link to the respective component library.call_func()
helper function after an error (f600c19)The patch allows users to inherit from
OCL::LuaComponent
orOCL::LuaService
to build customized Lua-enabled component and service plugins. This is particularly interesting to add operations and either implement them in C++ or forward them to a Lua implementation using the newLuaStateHandle
class. It is currently not possible to implement operations in pure Lua.