summaryrefslogtreecommitdiff
path: root/core/src/xmake/os/link.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/xmake/os/link.c')
-rw-r--r--core/src/xmake/os/link.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/core/src/xmake/os/link.c b/core/src/xmake/os/link.c
index 8c15dfa41..cead7f88c 100644
--- a/core/src/xmake/os/link.c
+++ b/core/src/xmake/os/link.c
@@ -22,8 +22,8 @@
/* //////////////////////////////////////////////////////////////////////////////////////
* trace
*/
-#define TB_TRACE_MODULE_NAME "link"
-#define TB_TRACE_MODULE_DEBUG (0)
+#define TB_TRACE_MODULE_NAME "link"
+#define TB_TRACE_MODULE_DEBUG (0)
/* //////////////////////////////////////////////////////////////////////////////////////
* includes
@@ -33,19 +33,16 @@
/* //////////////////////////////////////////////////////////////////////////////////////
* implementation
*/
-tb_int_t xm_os_link(lua_State* lua)
-{
- // check
+tb_int_t xm_os_link(lua_State *lua) {
tb_assert_and_check_return_val(lua, 0);
// get the source and destination
- tb_char_t const* src = luaL_checkstring(lua, 1);
- tb_char_t const* dst = luaL_checkstring(lua, 2);
+ tb_char_t const *src = luaL_checkstring(lua, 1);
+ tb_char_t const *dst = luaL_checkstring(lua, 2);
tb_check_return_val(src && dst, 0);
// do os.link(src, dst)
lua_pushboolean(lua, tb_file_link(src, dst));
- // ok
return 1;
}