mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
no need init(L)
This commit is contained in:
@@ -86,7 +86,6 @@ main(int argc, char *argv[]) {
|
|||||||
lua_close(L);
|
lua_close(L);
|
||||||
|
|
||||||
L = luaL_newstate();
|
L = luaL_newstate();
|
||||||
luaL_init(L);
|
|
||||||
|
|
||||||
int err = luaL_dofile(L, config_file);
|
int err = luaL_dofile(L, config_file);
|
||||||
if (err) {
|
if (err) {
|
||||||
@@ -96,9 +95,9 @@ main(int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
_init_env(L);
|
_init_env(L);
|
||||||
|
|
||||||
const char *path = optstring("lua_path","./lualib/?.lua;./lualib/?/init.lua");
|
const char *path = optstring("lua_path","./build/lua/?.lua;./lualib/?.lua;./lualib/?/init.lua");
|
||||||
setenv("LUA_PATH",path,1);
|
setenv("LUA_PATH",path,1);
|
||||||
const char *cpath = optstring("lua_cpath","./luaclib/?.so");
|
const char *cpath = optstring("lua_cpath","./build/lua/?.so");
|
||||||
setenv("LUA_CPATH",cpath,1);
|
setenv("LUA_CPATH",cpath,1);
|
||||||
optstring("luaservice","./service/?.lua");
|
optstring("luaservice","./service/?.lua");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user