Lua: Add automatic method binding

Former-commit-id: fccd5f3682f6581db6b6b5976f4d0d3e0afa324c
This commit is contained in:
Lynix
2015-11-28 02:51:42 +01:00
parent 6bc285cb00
commit 8915619934
4 changed files with 169 additions and 31 deletions

View File

@@ -42,6 +42,7 @@ namespace Nz
bool Call(unsigned int argCount);
bool Call(unsigned int argCount, unsigned int resultCount);
template<typename T> T Check(int index);
void CheckAny(int index) const;
bool CheckBoolean(int index) const;
bool CheckBoolean(int index, bool defValue) const;
@@ -110,6 +111,7 @@ namespace Nz
void Pop(unsigned int n = 1U);
template<typename T> int Push(T arg);
void PushBoolean(bool value);
void PushCFunction(LuaCFunction func, unsigned int upvalueCount = 0);
void PushFunction(LuaFunction func);