diff options
author | chai <chaifix@163.com> | 2021-10-17 23:05:01 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-17 23:05:01 +0800 |
commit | 7c8c68d79343d04be382334c15a73d079450857c (patch) | |
tree | 9aaacc042f0b7eeb4123c07dcc5f49c14fd8026c /Runtime/LuaBind/LuaBindCFunctions.h | |
parent | 6e73ca6ada8a41692809dae5db89c8db0675ce1e (diff) |
*misc
Diffstat (limited to 'Runtime/LuaBind/LuaBindCFunctions.h')
-rw-r--r-- | Runtime/LuaBind/LuaBindCFunctions.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Runtime/LuaBind/LuaBindCFunctions.h b/Runtime/LuaBind/LuaBindCFunctions.h new file mode 100644 index 0000000..25ccbc2 --- /dev/null +++ b/Runtime/LuaBind/LuaBindCFunctions.h @@ -0,0 +1,25 @@ +#ifndef __LUA_BIND_CFUNCTIONS_H__ +#define __LUA_BIND_CFUNCTIONS_H__ + +#include "LuaBindConfig.h" + +/** + * luax_cfunction里的函数用来注册给lua,一些特殊功能的通用函数。 +*/ + +namespace +{ + + // + // 获得第一个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 |