Exemple #1
0
 public static void AddEnumAndValues(this INativeSymbolStorage storage, NativeEnum enumeration)
 {
     // Enumerations are already special cased hence this behavior is automatic.
     // https://github.com/jaredpar/pinvoke/issues/16
     storage.Add(new NativeGlobalSymbol(enumeration));
 }
Exemple #2
0
 public static void AddProcedure(this INativeSymbolStorage storage, NativeProcedure procedure) => storage.Add(new NativeGlobalSymbol(procedure));
Exemple #3
0
 public static void AddDefinedType(this INativeSymbolStorage storage, NativeDefinedType definedType) => storage.Add(new NativeGlobalSymbol(definedType));
Exemple #4
0
 public static void AddTypeDef(this INativeSymbolStorage storage, NativeTypeDef typeDef) => storage.Add(new NativeGlobalSymbol(typeDef));
Exemple #5
0
 public static void AddConstant(this INativeSymbolStorage storage, NativeConstant constant) => storage.Add(new NativeGlobalSymbol(constant));