diff options
| author | ruki <[email protected]> | 2021-09-20 22:54:29 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-09-20 22:54:29 +0800 |
| commit | ed1c24645198aa1451ee22c005a16fa7b8e4d5bc (patch) | |
| tree | ccb126d4087620e72a658531434e06be4b86a5d3 /core/src/xmake/engine.c | |
| parent | 68f4ab938564a43656236de3a0eb67f9222bc876 (diff) | |
add libc.dataptr
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 63196680d..5d90decec 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_dataptr(lua_State* lua); #ifdef XM_CONFIG_API_HAVE_CURSES // register curses @@ -425,6 +426,7 @@ static luaL_Reg const g_libc_functions[] = , { "free", xm_libc_free } , { "memcpy", xm_libc_memcpy } , { "memset", xm_libc_memset } +, { "dataptr", xm_libc_dataptr } , { tb_null, tb_null } }; |
