summaryrefslogtreecommitdiff
path: root/core/src/xmake/os/getpid.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/xmake/os/getpid.c')
-rw-r--r--core/src/xmake/os/getpid.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/core/src/xmake/os/getpid.c b/core/src/xmake/os/getpid.c
index aeb0ace14..ad1a6f880 100644
--- a/core/src/xmake/os/getpid.c
+++ b/core/src/xmake/os/getpid.c
@@ -22,26 +22,24 @@
/* //////////////////////////////////////////////////////////////////////////////////////
* trace
*/
-#define TB_TRACE_MODULE_NAME "getpid"
-#define TB_TRACE_MODULE_DEBUG (0)
+#define TB_TRACE_MODULE_NAME "getpid"
+#define TB_TRACE_MODULE_DEBUG (0)
/* //////////////////////////////////////////////////////////////////////////////////////
* includes
*/
#include "prefix.h"
#ifdef TB_CONFIG_OS_WINDOWS
-# include <windows.h>
+#include <windows.h>
#else
-# include <unistd.h>
-# include <errno.h>
+#include <unistd.h>
+#include <errno.h>
#endif
/* //////////////////////////////////////////////////////////////////////////////////////
* implementation
*/
-tb_int_t xm_os_getpid(lua_State* lua)
-{
- // check
+tb_int_t xm_os_getpid(lua_State *lua) {
tb_assert_and_check_return_val(lua, 0);
#ifdef TB_CONFIG_OS_WINDOWS
@@ -51,4 +49,3 @@ tb_int_t xm_os_getpid(lua_State* lua)
#endif
return 1;
}
-