void cxStackReplaceTop(cxStack stack,cxAny any) { cxInt last = cxArrayLength(stack->array) - 1; if(last < 0){ cxStackPush(stack, any); }else{ cxArrayUpdate(stack->array, any, last); } }
void cxStackReplaceTop(cxAny pstack,cxAny any) { CX_ASSERT_THIS(pstack, cxStack); cxInt last = cxArrayLength(this->array) - 1; if(last < 0){ cxStackPush(this, any); }else{ cxArrayUpdate(this->array, any, last); } }