summaryrefslogtreecommitdiff
path: root/core/src/xmake/process/kill.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/xmake/process/kill.c')
-rw-r--r--core/src/xmake/process/kill.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/xmake/process/kill.c b/core/src/xmake/process/kill.c
index 1a695dc27..754d2d2aa 100644
--- a/core/src/xmake/process/kill.c
+++ b/core/src/xmake/process/kill.c
@@ -40,12 +40,12 @@ tb_int_t xm_process_kill(lua_State* lua)
// check
tb_assert_and_check_return_val(lua, 0);
- // is user data?
- if (!lua_isuserdata(lua, 1))
+ // is pointer?
+ if (!xm_lua_ispointer(lua, 1))
return 0;
// get the process
- tb_process_ref_t process = (tb_process_ref_t)lua_touserdata(lua, 1);
+ tb_process_ref_t process = (tb_process_ref_t)xm_lua_topointer(lua, 1);
tb_check_return_val(process, 0);
// kill process