summaryrefslogtreecommitdiff
path: root/core/src/xmake/machine.c
diff options
context:
space:
mode:
authorruki <[email protected]>2020-02-21 22:53:05 +0800
committerruki <[email protected]>2020-02-21 11:18:31 +0800
commit2ce8c14ab4cee3a5673aa24649196cb45dcc0426 (patch)
tree295eaa446ccec43eab5e820c4193bfe1cc5d1ee7 /core/src/xmake/machine.c
parent868450acbb14b1bf5cd2da7b1b09a195e88a6bd5 (diff)
add os.syserror
Diffstat (limited to 'core/src/xmake/machine.c')
-rw-r--r--core/src/xmake/machine.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/xmake/machine.c b/core/src/xmake/machine.c
index 9033dc9d1..f8704ff7f 100644
--- a/core/src/xmake/machine.c
+++ b/core/src/xmake/machine.c
@@ -82,6 +82,7 @@ tb_int_t xm_os_cpuinfo(lua_State* lua);
tb_int_t xm_os_readlink(lua_State* lua);
tb_int_t xm_os_filesize(lua_State* lua);
tb_int_t xm_os_emptydir(lua_State* lua);
+tb_int_t xm_os_syserror(lua_State* lua);
tb_int_t xm_os_strerror(lua_State* lua);
tb_int_t xm_os_getwinsize(lua_State* lua);
#ifndef TB_CONFIG_OS_WINDOWS
@@ -230,6 +231,7 @@ static luaL_Reg const g_os_functions[] =
, { "readlink", xm_os_readlink }
, { "emptydir", xm_os_emptydir }
, { "strerror", xm_os_strerror }
+, { "syserror", xm_os_syserror }
, { "filesize", xm_os_filesize }
, { "getwinsize", xm_os_getwinsize}
#ifndef TB_CONFIG_OS_WINDOWS