aboutsummaryrefslogtreecommitdiff
path: root/src/luasocket.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/luasocket.c')
-rw-r--r--src/luasocket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luasocket.c b/src/luasocket.c
index 8f13dbc..2c3b526 100644
--- a/src/luasocket.c
+++ b/src/luasocket.c
@@ -89,12 +89,12 @@ static int base_open(lua_State *L) {
89 /* export functions (and leave namespace table on top of stack) */ 89 /* export functions (and leave namespace table on top of stack) */
90 luaL_openlib(L, "socket", func, 0); 90 luaL_openlib(L, "socket", func, 0);
91#ifdef LUASOCKET_DEBUG 91#ifdef LUASOCKET_DEBUG
92 lua_pushstring(L, "DEBUG"); 92 lua_pushstring(L, "_DEBUG");
93 lua_pushboolean(L, 1); 93 lua_pushboolean(L, 1);
94 lua_rawset(L, -3); 94 lua_rawset(L, -3);
95#endif 95#endif
96 /* make version string available to scripts */ 96 /* make version string available to scripts */
97 lua_pushstring(L, "VERSION"); 97 lua_pushstring(L, "_VERSION");
98 lua_pushstring(L, LUASOCKET_VERSION); 98 lua_pushstring(L, LUASOCKET_VERSION);
99 lua_rawset(L, -3); 99 lua_rawset(L, -3);
100 return 1; 100 return 1;