diff options
Diffstat (limited to 'core/src/xmake/fwatcher/add.c')
| -rw-r--r-- | core/src/xmake/fwatcher/add.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/core/src/xmake/fwatcher/add.c b/core/src/xmake/fwatcher/add.c index 90c655eda..10c31b6b0 100644 --- a/core/src/xmake/fwatcher/add.c +++ b/core/src/xmake/fwatcher/add.c @@ -22,8 +22,8 @@ /* ////////////////////////////////////////////////////////////////////////////////////// * trace */ -#define TB_TRACE_MODULE_NAME "fwatcher.add" -#define TB_TRACE_MODULE_DEBUG (0) +#define TB_TRACE_MODULE_NAME "fwatcher.add" +#define TB_TRACE_MODULE_DEBUG (0) /* ////////////////////////////////////////////////////////////////////////////////////// * includes @@ -35,21 +35,20 @@ */ // fwatcher.add(watchdir, recursion) -tb_int_t xm_fwatcher_add(lua_State* lua) -{ - // check +tb_int_t xm_fwatcher_add(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); tb_check_return_val(fwatcher, 0); // get watchdir - tb_char_t const* watchdir = luaL_checkstring(lua, 2); + tb_char_t const *watchdir = luaL_checkstring(lua, 2); tb_check_return_val(watchdir, 0); // get recursion |
