Ejemplo n.º 1
0
		static void WriteParametersInvoke (StringWriter writer, ParameterData [] ps)
		{
			if (ps == null)
				return;
			
			for (int i = 0; i < ps.Length; i++) {
				var p = ps [i];
				if (p.TypeData.RequireMarshal) {
					writer.Write (", v{0}", i);
				} else {
					writer.Write (", p{0}", i);
				}
			}
		}
Ejemplo n.º 2
0
		static void WriteParametersMarshal (StringWriter writer, ParameterData [] ps)
		{
			if (ps == null)
				return;
			
			for (int i = 0; i < ps.Length; i++) {
				var p = ps [i];
				if (!p.TypeData.RequireMarshal)
					continue;

				writer.WriteLine ("\t{0} v{1};", p.TypeData.NativeType, i);
				MarshalToNative (writer, p.TypeData, "v" + i.ToString (), "p" + i.ToString ());
			}
		}