diff options
| author | ruki <[email protected]> | 2020-08-04 22:45:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-08-04 22:45:20 +0800 |
| commit | 81c072eaa6eadde5f6427e0109226a7fa04691b0 (patch) | |
| tree | 7243963c4614209145b441144093889fface5102 /core/src/xmake/process/kill.c | |
| parent | 8b08fbb9f5f0f54dd1232f4bf387932116dde47f (diff) | |
improve pushpointer
Diffstat (limited to 'core/src/xmake/process/kill.c')
| -rw-r--r-- | core/src/xmake/process/kill.c | 6 |
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 |
