summaryrefslogtreecommitdiff
path: root/core/src/xmake/engine.c
diff options
context:
space:
mode:
authorruki <[email protected]>2022-07-31 23:32:36 +0800
committerruki <[email protected]>2022-07-31 23:32:36 +0800
commitbb28bbb01c73ab1d7e455479f3338466a983d7d4 (patch)
treec77b6942e68f972e01ef835ab794c42f4962c27e /core/src/xmake/engine.c
parent1f27cde3a9c4b7e6866d677a2dd4e8a9cd6027e6 (diff)
add os.touch
Diffstat (limited to 'core/src/xmake/engine.c')
-rw-r--r--core/src/xmake/engine.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/xmake/engine.c b/core/src/xmake/engine.c
index 6458dee1c..b3d798e4f 100644
--- a/core/src/xmake/engine.c
+++ b/core/src/xmake/engine.c
@@ -98,6 +98,7 @@ tb_int_t xm_os_curdir(lua_State* lua);
tb_int_t xm_os_tmpdir(lua_State* lua);
tb_int_t xm_os_islink(lua_State* lua);
tb_int_t xm_os_isfile(lua_State* lua);
+tb_int_t xm_os_touch(lua_State* lua);
tb_int_t xm_os_rmfile(lua_State* lua);
tb_int_t xm_os_cpfile(lua_State* lua);
tb_int_t xm_os_rename(lua_State* lua);
@@ -319,6 +320,7 @@ static luaL_Reg const g_os_functions[] =
, { "tmpdir", xm_os_tmpdir }
, { "islink", xm_os_islink }
, { "isfile", xm_os_isfile }
+, { "touch", xm_os_touch }
, { "rmfile", xm_os_rmfile }
, { "cpfile", xm_os_cpfile }
, { "rename", xm_os_rename }