diff options
Diffstat (limited to 'src/auxiliar.c')
-rw-r--r-- | src/auxiliar.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/auxiliar.c b/src/auxiliar.c index 65425c5..4b3a0f6 100644 --- a/src/auxiliar.c +++ b/src/auxiliar.c | |||
@@ -17,24 +17,7 @@ | |||
17 | \*-------------------------------------------------------------------------*/ | 17 | \*-------------------------------------------------------------------------*/ |
18 | void aux_open(lua_State *L) | 18 | void aux_open(lua_State *L) |
19 | { | 19 | { |
20 | /* create namespace table */ | 20 | ; |
21 | lua_pushstring(L, LUASOCKET_LIBNAME); | ||
22 | lua_newtable(L); | ||
23 | #ifdef LUASOCKET_DEBUG | ||
24 | lua_pushstring(L, "debug"); | ||
25 | lua_pushnumber(L, 1); | ||
26 | lua_rawset(L, -3); | ||
27 | #endif | ||
28 | /* make version string available so scripts */ | ||
29 | lua_pushstring(L, "version"); | ||
30 | lua_pushstring(L, LUASOCKET_VERSION); | ||
31 | lua_rawset(L, -3); | ||
32 | /* store namespace as global */ | ||
33 | lua_settable(L, LUA_GLOBALSINDEX); | ||
34 | /* make sure modules know what is our namespace */ | ||
35 | lua_pushstring(L, "LUASOCKET_LIBNAME"); | ||
36 | lua_pushstring(L, LUASOCKET_LIBNAME); | ||
37 | lua_settable(L, LUA_GLOBALSINDEX); | ||
38 | } | 21 | } |
39 | 22 | ||
40 | /*-------------------------------------------------------------------------*\ | 23 | /*-------------------------------------------------------------------------*\ |