summaryrefslogtreecommitdiff
path: root/core/src/xmake/os/rmfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/xmake/os/rmfile.c')
-rw-r--r--core/src/xmake/os/rmfile.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/core/src/xmake/os/rmfile.c b/core/src/xmake/os/rmfile.c
index 1fd29e7c9..2032d4ee2 100644
--- a/core/src/xmake/os/rmfile.c
+++ b/core/src/xmake/os/rmfile.c
@@ -22,8 +22,8 @@
/* //////////////////////////////////////////////////////////////////////////////////////
* trace
*/
-#define TB_TRACE_MODULE_NAME "rmfile"
-#define TB_TRACE_MODULE_DEBUG (0)
+#define TB_TRACE_MODULE_NAME "rmfile"
+#define TB_TRACE_MODULE_DEBUG (0)
/* //////////////////////////////////////////////////////////////////////////////////////
* includes
@@ -33,13 +33,11 @@
/* //////////////////////////////////////////////////////////////////////////////////////
* implementation
*/
-tb_int_t xm_os_rmfile(lua_State* lua)
-{
- // check
+tb_int_t xm_os_rmfile(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);
// do remove