summaryrefslogtreecommitdiff
path: root/core/src/xmake/engine.c
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-19 23:16:35 +0800
committerruki <[email protected]>2022-05-19 23:16:35 +0800
commit7ee3bcea46426a9cc67b5a175f0f4abe0e5dd238 (patch)
tree15b24bc73573ec0d7530d9028e8bf3e3c5ce2442 /core/src/xmake/engine.c
parent2a3f925f6dd3c3ffd0b4322b2423125dd207b045 (diff)
add xxhash
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 a5ebeb9d7..3c0597977 100644
--- a/core/src/xmake/engine.c
+++ b/core/src/xmake/engine.c
@@ -184,6 +184,7 @@ tb_int_t xm_path_is_absolute(lua_State* lua);
tb_int_t xm_hash_uuid4(lua_State* lua);
tb_int_t xm_hash_sha(lua_State* lua);
tb_int_t xm_hash_md5(lua_State* lua);
+tb_int_t xm_hash_xxhash(lua_State* lua);
// the base64 functions
tb_int_t xm_base64_encode(lua_State* lua);
@@ -408,6 +409,7 @@ static luaL_Reg const g_hash_functions[] =
{ "uuid4", xm_hash_uuid4 }
, { "sha", xm_hash_sha }
, { "md5", xm_hash_md5 }
+, { "xxhash", xm_hash_xxhash }
, { tb_null, tb_null }
};