diff options
| author | ruki <[email protected]> | 2021-09-21 00:25:24 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-09-21 00:25:24 +0800 |
| commit | 1e14751dcb53640e9592be678e3ebf6a46d611e1 (patch) | |
| tree | 864f09358840610ac892790fa1e09f7d945b38f8 /core/src/xmake/engine.c | |
| parent | 07a9a02dbd44f4d58cdb704c6db23f5e62fd2ccf (diff) | |
improve bytes for lua
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 5ca1d90f0..e8f774327 100644 --- a/core/src/xmake/engine.c +++ b/core/src/xmake/engine.c @@ -226,6 +226,7 @@ tb_int_t xm_libc_malloc(lua_State* lua); tb_int_t xm_libc_free(lua_State* lua); tb_int_t xm_libc_memcpy(lua_State* lua); tb_int_t xm_libc_memset(lua_State* lua); +tb_int_t xm_libc_strndup(lua_State* lua); tb_int_t xm_libc_dataptr(lua_State* lua); tb_int_t xm_libc_ptraddr(lua_State* lua); @@ -427,6 +428,7 @@ static luaL_Reg const g_libc_functions[] = , { "free", xm_libc_free } , { "memcpy", xm_libc_memcpy } , { "memset", xm_libc_memset } +, { "strndup", xm_libc_strndup } , { "dataptr", xm_libc_dataptr } , { "ptraddr", xm_libc_ptraddr } , { tb_null, tb_null } |
