summaryrefslogtreecommitdiff
path: root/core/src/xmake/os/touch.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/xmake/os/touch.c')
-rw-r--r--core/src/xmake/os/touch.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/core/src/xmake/os/touch.c b/core/src/xmake/os/touch.c
index 30f214f2b..5c470440b 100644
--- a/core/src/xmake/os/touch.c
+++ b/core/src/xmake/os/touch.c
@@ -22,8 +22,8 @@
/* //////////////////////////////////////////////////////////////////////////////////////
* trace
*/
-#define TB_TRACE_MODULE_NAME "touch"
-#define TB_TRACE_MODULE_DEBUG (0)
+#define TB_TRACE_MODULE_NAME "touch"
+#define TB_TRACE_MODULE_DEBUG (0)
/* //////////////////////////////////////////////////////////////////////////////////////
* includes
@@ -33,12 +33,10 @@
/* //////////////////////////////////////////////////////////////////////////////////////
* implementation
*/
-tb_int_t xm_os_touch(lua_State* lua)
-{
- // check
+tb_int_t xm_os_touch(lua_State *lua) {
tb_assert_and_check_return_val(lua, 0);
- tb_char_t const* path = luaL_checkstring(lua, 1);
+ tb_char_t const *path = luaL_checkstring(lua, 1);
tb_check_return_val(path, 0);
tb_time_t atime = (tb_time_t)luaL_checknumber(lua, 2);