diff options
author | Chad Austin <chad@imvu.com> | 2014-05-12 12:52:07 -0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2014-05-21 23:07:44 +0700 |
commit | a33f6e69daf7428ae03dc7a024644e0ba944f70a (patch) | |
tree | 7991e729a3eedd39576d12663aff5fa6996d591a | |
parent | 179248abb25b51ab674b11f5fd4cd7c289a91b52 (diff) |
expose the set of inherited instances for debugging purposes
-rw-r--r-- | src/embind/embind.js | 11 |
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 = {}; |