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