MCPcopy Create free account
hub / github.com/cococry/leif / props_stack_push

Function props_stack_push

leif.c:1662–1667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1660}
1661
1662void props_stack_push(PropsStack* stack, LfUIElementProps props) {
1663 if(stack->count == stack->cap) {
1664 props_stack_resize(stack, stack->cap * 2);
1665 }
1666 stack->data[stack->count++] = props;
1667}
1668
1669LfUIElementProps props_stack_pop(PropsStack* stack) {
1670 LF_ASSERT(stack.count != 0, "Stack underflow on stack data structure!");

Callers 1

lf_push_style_propsFunction · 0.85

Calls 1

props_stack_resizeFunction · 0.85

Tested by

no test coverage detected