1 // Compiler options: -unsafe
4 using System
.Runtime
.InteropServices
;
10 static volatile bool ProcessExiting
= false;
12 [DllImport ("libc.dylib")]
13 public extern static void printf (string format
, __arglist
);
15 private static void ArglistMethod (__arglist
)
17 var iter
= new ArgIterator (__arglist
);
19 for (int n
= iter
.GetRemainingCount (); n
> 0; n
--)
20 Console
.WriteLine (TypedReference
.ToObject (iter
.GetNextArg ()));
23 static unsafe void Main (string[] args
)
25 ArglistMethod (__arglist (1, 2, 3));