Add Ruby support for std::unique_ptr inputs

Equivalent to Java/C#/Python implementations.
This commit is contained in:
William S Fulton 2022-07-17 14:27:33 +01:00
commit f99a2e6f64
4 changed files with 114 additions and 3 deletions

View file

@ -53,11 +53,9 @@ struct KlassInheritance : virtual Klass {
}
};
#if defined(SWIGJAVA) || defined (SWIGCSHARP) || defined(SWIGPYTHON)
std::string takeKlassUniquePtr(std::unique_ptr<Klass> k) {
return std::string(k->getLabel());
}
#endif
bool is_nullptr(Klass *p) {
return p == nullptr;