1
0
Fork 0

let n.getAttribute("last") return SGPropertyNode::LAST_USED_ATTRIBUTE

(this is the same constant value for all properties)
This commit is contained in:
mfranz 2008-07-10 10:58:06 +00:00
parent 1ace68e836
commit f08d1bf5b4

View file

@ -87,6 +87,7 @@ static naRef f_getAttribute(naContext c, naRef me, int argc, naRef* args)
else if(!strcmp(a, "references")) 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, "last")) return naNum(SGPropertyNode::LAST_USED_ATTRIBUTE);
else if(!strcmp(a, "readable")) attr = SGPropertyNode::READ;
else if(!strcmp(a, "writable")) attr = SGPropertyNode::WRITE;
else if(!strcmp(a, "archive")) attr = SGPropertyNode::ARCHIVE;