Exemple #1
0
 public static void OpenLibs(IntPtr L)
 {
     LuaDLL.tolua_atpanic(L, new LuaCSFunction(LuaStatic.Panic));
     LuaDLL.tolua_pushcfunction(L, new LuaCSFunction(LuaStatic.Print));
     LuaDLL.lua_setglobal(L, "print");
     LuaDLL.tolua_pushcfunction(L, new LuaCSFunction(LuaStatic.DoFile));
     LuaDLL.lua_setglobal(L, "dofile");
     LuaStatic.AddLuaLoader(L);
 }