1
0
Fork 0

make node.getAttribute("refcount") return the SGSharedPtr's refcount

(meant for debugging purposes)
This commit is contained in:
mfranz 2007-10-20 17:16:43 +00:00
parent f5e9e1898f
commit 2a70b87493

View file

@ -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;