aboutsummaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index a9a9782..4260f20 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -74,7 +74,7 @@ int buf_send(lua_State *L, p_buf buf)
74 } 74 }
75 priv_pusherror(L, err); 75 priv_pusherror(L, err);
76 lua_pushnumber(L, total); 76 lua_pushnumber(L, total);
77#ifdef _DEBUG 77#ifdef LUASOCKET_DEBUG
78 /* push time elapsed during operation as the last return value */ 78 /* push time elapsed during operation as the last return value */
79 lua_pushnumber(L, tm_getelapsed(&base->base_tm)/1000.0); 79 lua_pushnumber(L, tm_getelapsed(&base->base_tm)/1000.0);
80#endif 80#endif
@@ -139,7 +139,7 @@ int buf_receive(lua_State *L, p_buf buf)
139 for ( ; arg <= top; arg++) lua_pushnil(L); 139 for ( ; arg <= top; arg++) lua_pushnil(L);
140 /* last return is an error code */ 140 /* last return is an error code */
141 priv_pusherror(L, err); 141 priv_pusherror(L, err);
142#ifdef _DEBUG 142#ifdef LUASOCKET_DEBUG
143 /* push time elapsed during operation as the last return value */ 143 /* push time elapsed during operation as the last return value */
144 lua_pushnumber(L, tm_getelapsed(&base->base_tm)/1000.0); 144 lua_pushnumber(L, tm_getelapsed(&base->base_tm)/1000.0);
145#endif 145#endif