#include <LuaWrappers.hpp>
Public Member Functions | |
| ClassTableFiller (Diluculum::LuaValueMap &classTable, const std::string &name, lua_CFunction func) | |
DILUCULUM_CLASS_METHOD() macro, as a means register a method in the table that represents a class being exported to Lua. Everything is done in the constructor. This is just a way to get some code executed in a macro call that happens at the global scope, outside of a function definition.
Definition at line 61 of file LuaWrappers.hpp.
| Diluculum::Impl::ClassTableFiller::ClassTableFiller | ( | Diluculum::LuaValueMap & | classTable, | |
| const std::string & | name, | |||
| lua_CFunction | func | |||
| ) | [inline] |
Adds the function func to the table classTable, with a key name.
| classTable | The table representing the class being exported to Lua. | |
| name | The name by which the method will be known in the Lua side. | |
| func | The C function wrapping the method. |
Definition at line 72 of file LuaWrappers.hpp.
1.5.9