Example #1
0
        private static int NilK(FuncState fs)
        {
            // // cannot use nil as key;
            // // instead use table itself to represent nil
            // var k = fs.H;
            // var o = new LuaNil();
            // return AddK( fs, k, o );

            var o = new TValue();

            o.SetNilValue();
            return(AddK(fs, ref o, ref o));
        }
Example #2
0
		private static int NilK( FuncState fs )
		{
			// // cannot use nil as key;
			// // instead use table itself to represent nil
			// var k = fs.H;
			// var o = new LuaNil();
			// return AddK( fs, k, o );

			var o = new TValue();
			o.SetNilValue();
			return AddK( fs, ref o, ref o );
		}