summaryrefslogtreecommitdiff
path: root/core/src/xmake/machine.c
diff options
context:
space:
mode:
authorruki <[email protected]>2020-03-01 22:48:48 +0800
committerruki <[email protected]>2020-03-01 22:48:48 +0800
commit2b41fac5b92bc0e5e3c4a848dfd7d9a1435fd20f (patch)
tree58dabccfd6158af8a83d19f56517c40c415f5405 /core/src/xmake/machine.c
parentfc36d8022fed422d34498bc111cd69bff5b08c60 (diff)
improve string.split
Diffstat (limited to 'core/src/xmake/machine.c')
-rw-r--r--core/src/xmake/machine.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/xmake/machine.c b/core/src/xmake/machine.c
index e3a584f49..5cd6c1bd5 100644
--- a/core/src/xmake/machine.c
+++ b/core/src/xmake/machine.c
@@ -166,6 +166,7 @@ tb_int_t xm_winos_registry_query(lua_State* lua);
// the string functions
tb_int_t xm_string_trim(lua_State* lua);
+tb_int_t xm_string_split(lua_State* lua);
tb_int_t xm_string_convert(lua_State* lua);
tb_int_t xm_string_endswith(lua_State* lua);
tb_int_t xm_string_startswith(lua_State* lua);
@@ -327,6 +328,7 @@ static luaL_Reg const g_hash_functions[] =
static luaL_Reg const g_string_functions[] =
{
{ "trim", xm_string_trim }
+, { "split", xm_string_split }
, { "convert", xm_string_convert }
, { "endswith", xm_string_endswith }
, { "startswith", xm_string_startswith }