Browse Source

Fix two bugs in Driver.cs

pull/1893/head
duckdoom5 5 months ago
parent
commit
49ac4f515b
  1. 3
      src/Generator/Driver.cs

3
src/Generator/Driver.cs

@ -173,7 +173,6 @@ namespace CppSharp @@ -173,7 +173,6 @@ namespace CppSharp
using var res = ClangParser.ParseLibrary(linkerOptions);
if (res.Kind != ParserResultKind.Success)
{
res.Dispose();
continue;
}
@ -454,7 +453,7 @@ namespace CppSharp @@ -454,7 +453,7 @@ namespace CppSharp
driver.SaveCode(outputs);
if (driver.Options.IsCSharpGenerator && driver.Options.CompileCode)
driver.Options.Modules.Any(m => !driver.CompileCode(m));
return driver.Options.Modules.Any(m => !driver.CompileCode(m));
return true;
}

Loading…
Cancel
Save