Skip to content

Commit

Permalink
Breaking change, fixing order of plugins.
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed May 25, 2024
1 parent a167ce4 commit 8425ecf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CppAst.CodeGen/CSharp/CSharpConverterOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public CSharpConverterOptions()
new DefaultFieldConverter(),
new DefaultFunctionTypeConverter(),
new DefaultTypeConverter(),
new DefaultDllImportConverter(),
new DefaultMappingRulesConverter(),
new DefaultDllImportConverter(),
};

MappingRules = new CppMappingRules();
Expand Down
2 changes: 1 addition & 1 deletion src/CppAst.CodeGen/CSharp/CSharpConverterPipeline.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public void RegisterPlugins(CSharpConverter converter)
ConvertEnd.Clear();
RegisteredPlugins.Clear();

for (var index = Options.Plugins.Count - 1; index >= 0; index--)
for (var index = 0; index < Options.Plugins.Count; index++)
{
var plugin = Options.Plugins[index];
if (RegisteredPlugins.Contains(plugin))
Expand Down

0 comments on commit 8425ecf

Please sign in to comment.