diff options
Diffstat (limited to 'core/src/xmake/fwatcher/close.c')
| -rw-r--r-- | core/src/xmake/fwatcher/close.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/core/src/xmake/fwatcher/close.c b/core/src/xmake/fwatcher/close.c index 6d9eced7a..61c78868a 100644 --- a/core/src/xmake/fwatcher/close.c +++ b/core/src/xmake/fwatcher/close.c @@ -22,8 +22,8 @@ /* ////////////////////////////////////////////////////////////////////////////////////// * trace */ -#define TB_TRACE_MODULE_NAME "fwatcher.close" -#define TB_TRACE_MODULE_DEBUG (0) +#define TB_TRACE_MODULE_NAME "fwatcher.close" +#define TB_TRACE_MODULE_DEBUG (0) /* ////////////////////////////////////////////////////////////////////////////////////// * includes @@ -35,14 +35,13 @@ */ // fwatcher.close(p) -tb_int_t xm_fwatcher_close(lua_State* lua) -{ - // check +tb_int_t xm_fwatcher_close(lua_State *lua) { tb_assert_and_check_return_val(lua, 0); // is pointer? - if (!xm_lua_ispointer(lua, 1)) + if (!xm_lua_ispointer(lua, 1)) { return 0; + } // get the fwatcher tb_fwatcher_ref_t fwatcher = (tb_fwatcher_ref_t)xm_lua_topointer(lua, 1); |
