From f0807fc44dde14531759306317611bab87c8fccf Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 19 Oct 2020 09:13:58 +0800 Subject: +gamelab proj --- Runtime/Scripting/luax_cfunctions.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Runtime/Scripting/luax_cfunctions.h (limited to 'Runtime/Scripting/luax_cfunctions.h') diff --git a/Runtime/Scripting/luax_cfunctions.h b/Runtime/Scripting/luax_cfunctions.h new file mode 100644 index 0000000..2570bb9 --- /dev/null +++ b/Runtime/Scripting/luax_cfunctions.h @@ -0,0 +1,25 @@ +#ifndef __LUAX_CFUNCTIONS_H__ +#define __LUAX_CFUNCTIONS_H__ + +#include "luax_config.h" + +/** + * luax_cfunction里的函数用来注册给lua,一些特殊功能的通用函数。 +*/ + +namespace Luax +{ + + /// + /// 获得第一个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 -- cgit v1.1-26-g67d0