Browse Source

Improve error handling when looking for symbols with Options.CheckSymbols.

pull/254/merge
triton 11 years ago
parent
commit
ff6d9214dc
  1. 3
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

3
src/Generator/Generators/CSharp/CSharpTextTemplate.cs

@ -2673,7 +2673,8 @@ namespace CppSharp.Generators.CSharp @@ -2673,7 +2673,8 @@ namespace CppSharp.Generators.CSharp
NativeLibrary library;
Driver.Symbols.FindLibraryBySymbol(function.Mangled, out library);
libName = Path.GetFileNameWithoutExtension(library.FileName);
if (library != null)
libName = Path.GetFileNameWithoutExtension(library.FileName);
}
if (libName != null && libName.Length > 3 && libName.StartsWith("lib"))
{

Loading…
Cancel
Save