VgaGames4

VgaGames4 - actionstack man-pages

[.. upper level ..]

# vg4->actionstack->parent()

Get parent of upmost element from actionstack.

SYNTAX
void * vg4->actionstack->parent(unsigned int *name_id)
FUNCTION PARAMETERS

name_id | For returning element-ID

RETURN VALUE
Returns element-data of parent, which may be NULL
DESCRIPTION
Get parent of upmost element from actionstack. When the upmost element has no parent or the actionstack is empty, the value of name_id will be set to 0. Just checking the return value (element-data) for NULL does not suffice, as it could be NULL when passed to vg4->actionstack->push().