Exemplo n.º 1
0
 public static void NewLib(LuaStatePtr l, string l_)
 {
     LuaL.NewLibTable(l, l_);
     fixed(char *chptr = &l_.ToCharArray()[0])
     {
         LuaL.SetFuncs(l, new IntPtr(chptr), 0);
     }
 }
Exemplo n.º 2
0
 public static LuaBufferPtr LoadBuffer(LuaStatePtr l, string s, int sz, string n)
 {
     return(LuaL.LoadBufferx(l, s, sz, n, null));
 }
Exemplo n.º 3
0
 public static void DoString(LuaStatePtr l, string s)
 {
     LuaL.LoadString(l, s);
     Lua.PCall(l, 0, Lua.MultRet, 0);
 }
Exemplo n.º 4
0
 public static int LoadFile(LuaStatePtr l, string f)
 {
     return(LuaL.LoadFilex(l, f, null));
 }
Exemplo n.º 5
0
 public static void DoFile(LuaStatePtr l, string fn)
 {
     LuaL.LoadFile(l, fn);
     Lua.PCall(l, 0, Lua.MultRet, 0);
 }