diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/embind/embind.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js index 988526b4..78f54e31 100755 --- a/src/embind/embind.js +++ b/src/embind/embind.js @@ -1054,6 +1054,16 @@ function getInstanceTypeName(handle) { return handle.$$.ptrType.registeredClass.name; } +ClassHandle.prototype.isAliasOf = function(other) { + if (!(this instanceof ClassHandle)) { + return false; + } + if (!(other instanceof ClassHandle)) { + return false; + } + return this.$$.ptr == other.$$.ptr; +} + ClassHandle.prototype.clone = function() { if (!this.$$.ptr) { throwBindingError(getInstanceTypeName(this) + ' instance already deleted'); |