Beispiel #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));
 }
Beispiel #2
0
 public static void AddProcedure(this INativeSymbolStorage storage, NativeProcedure procedure) => storage.Add(new NativeGlobalSymbol(procedure));
Beispiel #3
0
 public static void AddDefinedType(this INativeSymbolStorage storage, NativeDefinedType definedType) => storage.Add(new NativeGlobalSymbol(definedType));
Beispiel #4
0
 public static void AddTypeDef(this INativeSymbolStorage storage, NativeTypeDef typeDef) => storage.Add(new NativeGlobalSymbol(typeDef));
Beispiel #5
0
 public static void AddConstant(this INativeSymbolStorage storage, NativeConstant constant) => storage.Add(new NativeGlobalSymbol(constant));