2014-01-12 53 views

回答

0

我發現在LuaJ源的答案:

public LuaValue call(LuaValue modname, LuaValue env) 
{ 
    globals = env.checkglobals(); 

    env.set("assert", new _assert()); 
    env.set("collectgarbage", new collectgarbage()); 
    env.set("dofile", new dofile()); 
      .... 

    return env; 
}