Skip to content

Instantly share code, notes, and snippets.

@mischief
Created April 1, 2012 09:40
Show Gist options
  • Save mischief/2274131 to your computer and use it in GitHub Desktop.
Save mischief/2274131 to your computer and use it in GitHub Desktop.
local function create_env()
return {
s = s,
co = commands,
_VERSION = _VERSION,
assert = assert,
collectgarbage = collectgarbage,
error = error,
getfenv = getfenv,
getmetatable = getmetatable,
ipairs = ipairs,
loadstring = loadstring,
next = next,
pairs = pairs,
pcall = pcall,
rawequal = rawequal,
rawget = rawget,
rawset = rawset,
select = select,
setfenv = setfenv,
setmetatable = setmetatable,
tonumber = tonumber,
tostring = tostring,
type = type,
unpack = unpack,
xpcall = xpcall,
coroutine = coroutine,
math = math,
string = string,
table = table,
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment