aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/embind/embind.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js
index 2453a086..9f3e6eff 100644
--- a/src/embind/embind.js
+++ b/src/embind/embind.js
@@ -195,6 +195,17 @@ function getInheritedInstanceCount() {
}
Module['getInheritedInstanceCount'] = getInheritedInstanceCount;
+function getLiveInheritedInstances() {
+ var rv = [];
+ for (var k in registeredInstances) {
+ if (registeredInstances.hasOwnProperty(k)) {
+ rv.push(registeredInstances[k]);
+ }
+ }
+ return rv;
+}
+Module['getLiveInheritedInstances'] = getLiveInheritedInstances;
+
// typeID -> { toWireType: ..., fromWireType: ... }
var registeredTypes = {};