mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
add config
This commit is contained in:
9
lualib/config.lua
Normal file
9
lualib/config.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
local function config(path , pre)
|
||||
assert(path)
|
||||
local env = pre or {}
|
||||
local f = assert(loadfile(path,"t",env))
|
||||
f()
|
||||
return env
|
||||
end
|
||||
|
||||
return config
|
||||
Reference in New Issue
Block a user