コード例 #1
0
    public static int Main()
    {
        X *foo = null;

        if ((int)(foo + 1) != sizeof(X))
        {
            return(1);
        }
        return(0);
    }
コード例 #2
0
ファイル: RawCalliHelper.cs プロジェクト: loqix/RoseOS
 public static ulong StdCall <T, U, W, X, Y>(IntPtr fn, T *a1, U a2, W *a3, X *a4, Y *a5) where T : unmanaged where U : unmanaged where W : unmanaged where X : unmanaged where Y : unmanaged => 0;
コード例 #3
0
ファイル: RawCalliHelper.cs プロジェクト: loqix/RoseOS
 //public static ulong StdCall<T, U, W, X>(IntPtr fn, T* a1, U* a2, W a3, X a4) where T : unmanaged where U : unmanaged where W : unmanaged where X : unmanaged => 0;
 //public static ulong StdCall<T, U, W, X>(IntPtr fn, T* a1, U* a2, W a3, X* a4) where T : unmanaged where U : unmanaged where W : unmanaged where X : unmanaged => 0;
 //public static ulong StdCall<T, U, W, X>(IntPtr fn, T* a1, U* a2, W* a3, X a4) where T : unmanaged where U : unmanaged where W : unmanaged where X : unmanaged => 0;
 public static ulong StdCall <T, U, W, X>(IntPtr fn, T *a1, U *a2, W *a3, X *a4) where T : unmanaged where U : unmanaged where W : unmanaged where X : unmanaged => 0;
コード例 #4
0
 public static unsafe ulong StdCall <T, U, W, X>(IntPtr pfn, T arg1, U *arg2, W *arg3, X *arg4) where T : struct where U : unmanaged where W : unmanaged where X : unmanaged
 {
     // This will be filled in by an IL transform
     return(0);
 }