Build with Lua 5.2 without LUA_COMPAT_MODULE flag.

LUASOCKET_USE_GLOBAL flag enable create global variables when load socket/mime modules.
This commit is contained in:
moteus 2013-05-27 12:45:09 +04:00
parent bd51d8c1a5
commit 920bc97629
14 changed files with 179 additions and 115 deletions

View file

@ -1,3 +1,3 @@
require"socket"
require"mime"
local socket = require"socket"
local mime = require"mime"
print("Hello from " .. socket._VERSION .. " and " .. mime._VERSION .. "!")