summaryrefslogtreecommitdiff
path: root/core/src/xmake/machine.c
diff options
context:
space:
mode:
authorruki <[email protected]>2017-02-08 10:30:48 +0800
committerruki <[email protected]>2017-02-08 10:30:48 +0800
commit0dd09d0248bb07ca897d666ff13feaae19a3d93e (patch)
tree96cb83fb812b0e995a34cbf0ed562e8f3c5b471a /core/src/xmake/machine.c
parent495724f2c5c22501520de05715f6ef18f2bd484d (diff)
add os.argv
Diffstat (limited to 'core/src/xmake/machine.c')
-rwxr-xr-xcore/src/xmake/machine.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/xmake/machine.c b/core/src/xmake/machine.c
index 4dfa028d4..a5ab7968e 100755
--- a/core/src/xmake/machine.c
+++ b/core/src/xmake/machine.c
@@ -55,6 +55,7 @@ typedef struct __xm_machine_impl_t
*/
// the os functions
+tb_int_t xm_os_argv(lua_State* lua);
tb_int_t xm_os_find(lua_State* lua);
tb_int_t xm_os_uuid(lua_State* lua);
tb_int_t xm_os_isdir(lua_State* lua);
@@ -101,7 +102,8 @@ tb_int_t xm_process_close(lua_State* lua);
// the os functions
static luaL_Reg const g_os_functions[] =
{
- { "find", xm_os_find }
+ { "argv", xm_os_argv }
+, { "find", xm_os_find }
, { "uuid", xm_os_uuid }
, { "isdir", xm_os_isdir }
, { "rmdir", xm_os_rmdir }