コード例 #1
0
 public static CallingConvention GetCallingConvention(NativeApiAttribute attr, NativeApiAttribute parent)
 {
     return(attr?.Convention ?? parent?.Convention ?? CallingConvention.Cdecl);
 }
コード例 #2
0
 public static string GetEntryPoint(NativeApiAttribute attr, NativeApiAttribute parent, string method)
 {
     return((string.IsNullOrEmpty(attr?.Prefix) ? parent?.Prefix : attr.Prefix) +
            (string.IsNullOrEmpty(attr?.EntryPoint) ? method : attr.EntryPoint));
 }