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