Beispiel #1
0
 public Closure(Func <LuaState, int> CSharpFunc, int nUpval)
 {
     _CSharpFunc = CSharpFunc;
     if (nUpval > 0)
     {
         UpValues = new UpValue[nUpval];
     }
 }
Beispiel #2
0
        public Closure(Prototype prototype)
        {
            this.prototype = prototype;
            int nUpval = prototype.UpValues.Length;

            if (nUpval > 0)
            {
                UpValues = new UpValue[nUpval];
            }
        }