aboutsummaryrefslogtreecommitdiff
path: root/src/timeout.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/timeout.c')
-rw-r--r--src/timeout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timeout.c b/src/timeout.c
index fdbc47a..940ddca 100644
--- a/src/timeout.c
+++ b/src/timeout.c
@@ -20,7 +20,7 @@
20/*=========================================================================*\ 20/*=========================================================================*\
21* Internal function prototypes 21* Internal function prototypes
22\*=========================================================================*/ 22\*=========================================================================*/
23#ifdef _DEBUG 23#ifdef LUASOCKET_DEBUG
24static int tm_lua_time(lua_State *L); 24static int tm_lua_time(lua_State *L);
25static int tm_lua_sleep(lua_State *L); 25static int tm_lua_sleep(lua_State *L);
26#endif 26#endif
@@ -123,7 +123,7 @@ int tm_gettime(void)
123void tm_open(lua_State *L) 123void tm_open(lua_State *L)
124{ 124{
125 (void) L; 125 (void) L;
126#ifdef _DEBUG 126#ifdef LUASOCKET_DEBUG
127 lua_pushcfunction(L, tm_lua_time); 127 lua_pushcfunction(L, tm_lua_time);
128 priv_newglobal(L, "_time"); 128 priv_newglobal(L, "_time");
129 lua_pushcfunction(L, tm_lua_sleep); 129 lua_pushcfunction(L, tm_lua_sleep);
@@ -137,7 +137,7 @@ void tm_open(lua_State *L)
137/*-------------------------------------------------------------------------*\ 137/*-------------------------------------------------------------------------*\
138* Returns the time the system has been up, in secconds. 138* Returns the time the system has been up, in secconds.
139\*-------------------------------------------------------------------------*/ 139\*-------------------------------------------------------------------------*/
140#ifdef _DEBUG 140#ifdef LUASOCKET_DEBUG
141static int tm_lua_time(lua_State *L) 141static int tm_lua_time(lua_State *L)
142{ 142{
143 lua_pushnumber(L, tm_gettime()/1000.0); 143 lua_pushnumber(L, tm_gettime()/1000.0);