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