diff options
Diffstat (limited to 'core/src/xmake/path/relative.c')
| -rw-r--r-- | core/src/xmake/path/relative.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/core/src/xmake/path/relative.c b/core/src/xmake/path/relative.c index ec1dcc215..5d3beaaa5 100644 --- a/core/src/xmake/path/relative.c +++ b/core/src/xmake/path/relative.c @@ -22,8 +22,8 @@ /* ////////////////////////////////////////////////////////////////////////////////////// * trace */ -#define TB_TRACE_MODULE_NAME "relative" -#define TB_TRACE_MODULE_DEBUG (0) +#define TB_TRACE_MODULE_NAME "relative" +#define TB_TRACE_MODULE_DEBUG (0) /* ////////////////////////////////////////////////////////////////////////////////////// * includes @@ -33,17 +33,15 @@ /* ////////////////////////////////////////////////////////////////////////////////////// * implementation */ -tb_int_t xm_path_relative(lua_State* lua) -{ - // check +tb_int_t xm_path_relative(lua_State *lua) { tb_assert_and_check_return_val(lua, 0); // get the path - tb_char_t const* path = luaL_checkstring(lua, 1); + tb_char_t const *path = luaL_checkstring(lua, 1); tb_check_return_val(path, 0); // get the root - tb_char_t const* root = luaL_optstring(lua, 2, tb_null); + tb_char_t const *root = luaL_optstring(lua, 2, tb_null); // path:relative(root) tb_char_t data[TB_PATH_MAXN]; |
