diff options
| author | ruki <[email protected]> | 2025-11-09 19:11:32 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-11-09 19:44:18 +0800 |
| commit | c89c94bf89e98c8e42e786aacc0b334a57474179 (patch) | |
| tree | 60b4964d58a5289e1444b2375ec5db1a93eccdd6 /core/src/xmake/path/relative.c | |
| parent | 3f9c6f27ee8f99d5c4393433e8863fec93da43e7 (diff) | |
format code
Diffstat (limited to 'core/src/xmake/path/relative.c')
| -rw-r--r-- | core/src/xmake/path/relative.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/core/src/xmake/path/relative.c b/core/src/xmake/path/relative.c index ec1dcc215..c6ddad14d 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,16 @@ /* ////////////////////////////////////////////////////////////////////////////////////// * implementation */ -tb_int_t xm_path_relative(lua_State* lua) -{ +tb_int_t xm_path_relative(lua_State *lua) { // check 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]; |
