summaryrefslogtreecommitdiff
path: root/core/src/xmake/engine.c
diff options
context:
space:
mode:
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 0c52f6cf0..dcfdd428c 100644
--- a/core/src/xmake/engine.c
+++ b/core/src/xmake/engine.c
@@ -223,6 +223,7 @@ tb_int_t xm_semver_select(lua_State* lua);
// the libc functions
tb_int_t xm_libc_malloc(lua_State* lua);
+tb_int_t xm_libc_free(lua_State* lua);
#ifdef XM_CONFIG_API_HAVE_CURSES
// register curses
@@ -419,6 +420,7 @@ static luaL_Reg const g_semver_functions[] =
static luaL_Reg const g_libc_functions[] =
{
{ "malloc", xm_libc_malloc }
+, { "free", xm_libc_free }
, { tb_null, tb_null }
};