Example #1
0
 public static CallingConvention GetCallingConvention(NativeApiAttribute attr, NativeApiAttribute parent)
 {
     return(attr?.Convention ?? parent?.Convention ?? CallingConvention.Cdecl);
 }
Example #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));
 }