diff options
| author | Peter LaFosse <peter@vector35.com> | 2018-09-20 16:51:14 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2018-09-20 16:51:14 -0400 |
| commit | f48203de0acafb1d981d56c79d0edff921102065 (patch) | |
| tree | 04e3a94f4756fc4c00e64346ceec660bf25fa4b0 /type.cpp | |
| parent | 74a8547853dd66fe62d2e75b93c1b723eb6f69cf (diff) | |
Adding NameSpace tokens and plumbing through some namespce apis
Diffstat (limited to 'type.cpp')
| -rw-r--r-- | type.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -385,6 +385,12 @@ NameSpace NameSpace::operator+(const NameSpace& other) const } +bool NameSpace::IsDefaultNameSpace() const +{ + return ((GetString() == DEFAULT_INTERNAL_NAMESPACE) || (GetString() == DEFAULT_EXTERNAL_NAMESPACE)); +} + + BNNameSpace NameSpace::GetAPIObject() const { BNNameSpace result; @@ -406,7 +412,7 @@ void NameSpace::FreeAPIObject(BNNameSpace* name) } -NameSpace NameSpace::FromAPIObject(BNNameSpace* name) +NameSpace NameSpace::FromAPIObject(const BNNameSpace* name) { NameSpace result; for (size_t i = 0; i < name->nameCount; i++) |
