예제 #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));
 }