Add Ruby support for std::unique_ptr inputs
Equivalent to Java/C#/Python implementations.
This commit is contained in:
parent
c3c061cac8
commit
f99a2e6f64
4 changed files with 114 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue