summaryrefslogtreecommitdiff
path: root/Runner/Scripting/luax_cfunctions.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-09-10 20:30:31 +0800
committerchai <chaifix@163.com>2020-09-10 20:30:31 +0800
commit639b34294ffc20721c66db46e59e07d9100ac4b8 (patch)
tree7e1d45b536fa35e9f1559e468ea66fca99524573 /Runner/Scripting/luax_cfunctions.h
*init
Diffstat (limited to 'Runner/Scripting/luax_cfunctions.h')
-rw-r--r--Runner/Scripting/luax_cfunctions.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/Runner/Scripting/luax_cfunctions.h b/Runner/Scripting/luax_cfunctions.h
new file mode 100644
index 0000000..2570bb9
--- /dev/null
+++ b/Runner/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