summaryrefslogtreecommitdiff
path: root/core/src/xmake/path/absolute.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/xmake/path/absolute.c')
-rw-r--r--core/src/xmake/path/absolute.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/core/src/xmake/path/absolute.c b/core/src/xmake/path/absolute.c
index a780cdce8..9b05bc07d 100644
--- a/core/src/xmake/path/absolute.c
+++ b/core/src/xmake/path/absolute.c
@@ -22,8 +22,8 @@
/* //////////////////////////////////////////////////////////////////////////////////////
* trace
*/
-#define TB_TRACE_MODULE_NAME "absolute"
-#define TB_TRACE_MODULE_DEBUG (0)
+#define TB_TRACE_MODULE_NAME "absolute"
+#define TB_TRACE_MODULE_DEBUG (0)
/* //////////////////////////////////////////////////////////////////////////////////////
* includes
@@ -33,17 +33,15 @@
/* //////////////////////////////////////////////////////////////////////////////////////
* implementation
*/
-tb_int_t xm_path_absolute(lua_State* lua)
-{
- // check
+tb_int_t xm_path_absolute(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);
// do path:absolute(root)
tb_char_t data[TB_PATH_MAXN];