diff options
| author | ruki <[email protected]> | 2025-11-09 19:11:32 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-11-09 19:44:18 +0800 |
| commit | c89c94bf89e98c8e42e786aacc0b334a57474179 (patch) | |
| tree | 60b4964d58a5289e1444b2375ec5db1a93eccdd6 /core/src/xmake/os/tmpdir.c | |
| parent | 3f9c6f27ee8f99d5c4393433e8863fec93da43e7 (diff) | |
format code
Diffstat (limited to 'core/src/xmake/os/tmpdir.c')
| -rw-r--r-- | core/src/xmake/os/tmpdir.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/core/src/xmake/os/tmpdir.c b/core/src/xmake/os/tmpdir.c index b2c3a0c43..68b99ee8f 100644 --- a/core/src/xmake/os/tmpdir.c +++ b/core/src/xmake/os/tmpdir.c @@ -22,8 +22,8 @@ /* ////////////////////////////////////////////////////////////////////////////////////// * trace */ -#define TB_TRACE_MODULE_NAME "tmpdir" -#define TB_TRACE_MODULE_DEBUG (0) +#define TB_TRACE_MODULE_NAME "tmpdir" +#define TB_TRACE_MODULE_DEBUG (0) /* ////////////////////////////////////////////////////////////////////////////////////// * includes @@ -33,14 +33,15 @@ /* ////////////////////////////////////////////////////////////////////////////////////// * implementation */ -tb_int_t xm_os_tmpdir(lua_State* lua) -{ +tb_int_t xm_os_tmpdir(lua_State *lua) { // check tb_assert_and_check_return_val(lua, 0); // os.tmpdir() tb_char_t path[TB_PATH_MAXN]; - if (tb_directory_temporary(path, sizeof(path))) lua_pushstring(lua, path); - else lua_pushnil(lua); + if (tb_directory_temporary(path, sizeof(path))) + lua_pushstring(lua, path); + else + lua_pushnil(lua); return 1; } |
