Пример #1
0
 static public int Execute_s(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (matchType(l, argc, 1, typeof(BetterList <System.Action>)))
         {
             BetterList <System.Action> a1;
             checkType(l, 1, out a1);
             CUtils.Execute(a1);
             return(0);
         }
         else if (matchType(l, argc, 1, typeof(IList <System.Action>)))
         {
             System.Collections.Generic.IList <System.Action> a1;
             checkType(l, 1, out a1);
             CUtils.Execute(a1);
             return(0);
         }
         LuaDLL.luaL_error(l, "No matched override function to call");
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }