diff options
author | chai <chaifix@163.com> | 2020-11-15 09:59:32 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-11-15 09:59:32 +0800 |
commit | d2e4b2839bc7ce874370ff4c52dcfdadf666ff52 (patch) | |
tree | b83e34c2d66cf80b94af5c9a420b6c9c206c138c /Runtime/Scripting/LuaBindCFunctions.h | |
parent | 64f89347883d519b202711a11d2ea175bd80be37 (diff) |
+lua binding
Diffstat (limited to 'Runtime/Scripting/LuaBindCFunctions.h')
-rw-r--r-- | Runtime/Scripting/LuaBindCFunctions.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Runtime/Scripting/LuaBindCFunctions.h b/Runtime/Scripting/LuaBindCFunctions.h new file mode 100644 index 0000000..674b9ff --- /dev/null +++ b/Runtime/Scripting/LuaBindCFunctions.h @@ -0,0 +1,25 @@ +#ifndef __LUA_BIND_CFUNCTIONS_H__ +#define __LUA_BIND_CFUNCTIONS_H__ + +#include "LuaBindConfig.h" + +/** + * luax_cfunction里的函数用来注册给lua,一些特殊功能的通用函数。 +*/ + +namespace LuaBind +{ + + /// + /// 获得第一个upvalue + /// + extern int luax_c_getupvalue(lua_State* L); + + /// + /// 调用此函数时会报错,upvalue(1)是错误信息 + /// + extern int luax_c_errfunc(lua_State* L); + +} + +#endif
\ No newline at end of file |