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/libc/dataptr.c | |
| parent | 3f9c6f27ee8f99d5c4393433e8863fec93da43e7 (diff) | |
format code
Diffstat (limited to 'core/src/xmake/libc/dataptr.c')
| -rw-r--r-- | core/src/xmake/libc/dataptr.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/core/src/xmake/libc/dataptr.c b/core/src/xmake/libc/dataptr.c index b78b32558..50b063b4e 100644 --- a/core/src/xmake/libc/dataptr.c +++ b/core/src/xmake/libc/dataptr.c @@ -22,8 +22,8 @@ /* ////////////////////////////////////////////////////////////////////////////////////// * trace */ -#define TB_TRACE_MODULE_NAME "dataptr" -#define TB_TRACE_MODULE_DEBUG (0) +#define TB_TRACE_MODULE_NAME "dataptr" +#define TB_TRACE_MODULE_DEBUG (0) /* ////////////////////////////////////////////////////////////////////////////////////// * includes @@ -33,8 +33,7 @@ /* ////////////////////////////////////////////////////////////////////////////////////// * implementation */ -tb_int_t xm_libc_dataptr(lua_State* lua) -{ +tb_int_t xm_libc_dataptr(lua_State *lua) { // check tb_assert_and_check_return_val(lua, 0); @@ -45,8 +44,8 @@ tb_int_t xm_libc_dataptr(lua_State* lua) data = (tb_pointer_t)(tb_size_t)lua_tointeger(lua, 1); else if (xm_lua_ispointer(lua, 1)) data = (tb_pointer_t)xm_lua_topointer(lua, 1); - else xm_libc_return_error(lua, "libc.dataptr(invalid data)!"); + else + xm_libc_return_error(lua, "libc.dataptr(invalid data)!"); lua_pushinteger(lua, (lua_Integer)(tb_long_t)data); return 1; } - |
