aboutsummaryrefslogtreecommitdiff
path: root/src/luasocket.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/luasocket.c')
-rw-r--r--src/luasocket.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/luasocket.c b/src/luasocket.c
index 2b0a1fa..6f7debe 100644
--- a/src/luasocket.c
+++ b/src/luasocket.c
@@ -87,13 +87,6 @@ static int base_open(lua_State *L) {
87 /* whoever is loading the library replaced the global environment 87 /* whoever is loading the library replaced the global environment
88 * with the namespace table */ 88 * with the namespace table */
89 lua_pushvalue(L, LUA_GLOBALSINDEX); 89 lua_pushvalue(L, LUA_GLOBALSINDEX);
90 /* make sure library is still "requirable" if initialized staticaly */
91 lua_pushstring(L, "_LOADEDLIB");
92 lua_gettable(L, -2);
93 lua_pushstring(L, LUASOCKET_LIBNAME);
94 lua_pushcfunction(L, (lua_CFunction) luaopen_socket);
95 lua_settable(L, -3);
96 lua_pop(L, 1);
97#ifdef LUASOCKET_DEBUG 90#ifdef LUASOCKET_DEBUG
98 lua_pushstring(L, "DEBUG"); 91 lua_pushstring(L, "DEBUG");
99 lua_pushboolean(L, 1); 92 lua_pushboolean(L, 1);