Exemplo n.º 1
0
        public ScriptEngine()
        {
            state = new Lua();
            ExposeConstants();
            typeof (Lua).GetMethodIP("PushCSFunction").Invoke(state, new object[] {new LuaNativeFunction(print)});

            LuaLib.LuaAtPanic(state.GetLuaState(), panic);
            // MAYBE NOT NEEDED ANYMORE, NLua handles exceptions by itself
        }