Add support for c closures in lua

This commit is contained in:
Emil Axelsson
2017-07-06 22:30:57 +02:00
parent ee36a97762
commit 351a246f3a
14 changed files with 86 additions and 1 deletions
+2
View File
@@ -48,6 +48,8 @@ struct LuaLibrary {
std::string name;
/// The function pointer that is executed if the function is called
lua_CFunction function;
/// A vector of light userdata to be passed into the function
std::vector<void*> userdata;
/// A text describing the arugments to this function
std::string argumentText;
/// A help text describing what the function does/