diff options
| author | ruki <[email protected]> | 2022-07-27 22:44:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-07-27 22:44:21 +0800 |
| commit | 557b2bf7b8326ecc440db1d67617bc8bae62959d (patch) | |
| tree | 874de72378ff0ce16228131159926b63142db12e /core/src/xmake/engine.c | |
| parent | f7d9c1714f894fa04077cebbe7299eaa9b8070bf (diff) | |
add os.meminfo
Diffstat (limited to 'core/src/xmake/engine.c')
| -rw-r--r-- | core/src/xmake/engine.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/xmake/engine.c b/core/src/xmake/engine.c index 7c904fb38..6458dee1c 100644 --- a/core/src/xmake/engine.c +++ b/core/src/xmake/engine.c @@ -106,6 +106,7 @@ tb_int_t xm_os_setenv(lua_State* lua); tb_int_t xm_os_getenv(lua_State* lua); tb_int_t xm_os_getenvs(lua_State* lua); tb_int_t xm_os_cpuinfo(lua_State* lua); +tb_int_t xm_os_meminfo(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); @@ -326,6 +327,7 @@ static luaL_Reg const g_os_functions[] = , { "getenv", xm_os_getenv } , { "getenvs", xm_os_getenvs } , { "cpuinfo", xm_os_cpuinfo } +, { "meminfo", xm_os_meminfo } , { "readlink", xm_os_readlink } , { "emptydir", xm_os_emptydir } , { "strerror", xm_os_strerror } |
