Browse Source

Checking for null like FindClass().

pull/230/merge
Tom Spilman 12 years ago committed by triton
parent
commit
f6aaa7400b
  1. 3
      src/AST/Namespace.cs

3
src/AST/Namespace.cs

@ -166,6 +166,9 @@ namespace CppSharp.AST
public Function FindFunction(string name, bool createDecl = false) public Function FindFunction(string name, bool createDecl = false)
{ {
if (string.IsNullOrEmpty(name))
return null;
var entries = name.Split(new string[] { "::" }, var entries = name.Split(new string[] { "::" },
StringSplitOptions.RemoveEmptyEntries).ToList(); StringSplitOptions.RemoveEmptyEntries).ToList();

Loading…
Cancel
Save