コード例 #1
0
ファイル: LuaTable.cs プロジェクト: matthewyang/UniLua
        public void DebugGet( LuaObject key, out LuaObject outKey,
			out LuaObject outValue )
        {
            Node node;
            if( DictPart.TryGetValue( key, out node ) ) {
                outKey	 = node.Key;
                outValue = node.Value;
            }
            else {
                outKey 		= new LuaNil();
                outValue	= new LuaNil();
            }
        }
コード例 #2
0
ファイル: Coder.cs プロジェクト: matthewyang/UniLua
		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 LuaNil();
			return AddK( fs, o, o );
		}