Orxonox  0.0.5 Codename: Arcturus
luatb.h
Go to the documentation of this file.
1 #ifndef LUATB_H
2 #define LUATB_H
3 
4 #include <string>
5 
6 struct lua_State;
7 
12 template<typename ThisType, typename FunctionType>
13 class LuaTB
14 {
15 public:
31  template<FunctionType func>
32  static void registerFunction(ThisType *_this, lua_State *lua, std::string name);
33 };
34 
35 // We need to include all type-dependant template implementations, because the
36 // compiler needs to know for which types it has to instantiate those.
37 #include "luatb.ipp"
38 
39 #endif // LUATB_H
Makes certain functions visible to lua while staying type-safe on the C++ side.
Definition: luatb.h:13
::std::string string
Definition: gtest-port.h:756
static void registerFunction(ThisType *_this, lua_State *lua, std::string name)
Make a function visible to lua.