| 1651 | } |
| 1652 | |
| 1653 | void props_stack_resize(PropsStack* stack, uint32_t newcap) { |
| 1654 | LfUIElementProps* newdata = (LfUIElementProps*)realloc(stack->data, newcap * sizeof(LfUIElementProps)); |
| 1655 | if(!newdata) { |
| 1656 | LF_ERROR("Failed to reallocate memory for stack datastructure."); |
| 1657 | } |
| 1658 | stack->data = newdata; |
| 1659 | stack->cap = newcap; |
| 1660 | } |
| 1661 | |
| 1662 | void props_stack_push(PropsStack* stack, LfUIElementProps props) { |
| 1663 | if(stack->count == stack->cap) { |
no outgoing calls
no test coverage detected