LUALIB_API int luaopen_mongoose(lua_State *L) { create_metatable(L, fns, META_HTTPAUTH, 1); create_metatable(L, conn_fns, META_CONN, 1); luaL_register(L, MODULE_HTTPAUTH, reg); register_constant(L); lua_pushnil(L); lua_setglobal(L, MODULE_HTTPAUTH); return 1; }
LUAMOD_API int luaopen_base64(lua_State *L) { create_metatable(L); luaL_newlib(L, fregs); return 1; }