make node.getAttribute("refcount") return the SGSharedPtr's refcount
(meant for debugging purposes)
This commit is contained in:
parent
f5e9e1898f
commit
2a70b87493
1 changed files with 1 additions and 0 deletions
|
@ -84,6 +84,7 @@ static naRef f_getAttribute(naContext c, naRef me, int argc, naRef* args)
|
|||
if(!a) a = "";
|
||||
if(!strcmp(a, "children")) return naNum((*node)->nChildren());
|
||||
else if(!strcmp(a, "listeners")) return naNum((*node)->nListeners());
|
||||
else if(!strcmp(a, "refcount")) return naNum(node->getNumRefs());
|
||||
else if(!strcmp(a, "tied")) return naNum((*node)->isTied());
|
||||
else if(!strcmp(a, "alias")) return naNum((*node)->isAlias());
|
||||
else if(!strcmp(a, "read")) attr = SGPropertyNode::READ;
|
||||
|
|
Loading…
Add table
Reference in a new issue