Ruby 3.3.0p0 (2023-12-25 revision 5124f9ac7513eb590c37717337c430cb93caa151)
|
A stack of boolean values. More...
Go to the source code of this file.
Typedefs | |
typedef uint32_t | pm_state_stack_t |
A struct that represents a stack of boolean values. | |
Functions | |
void | pm_state_stack_push (pm_state_stack_t *stack, bool value) |
Pushes a value onto the stack. | |
void | pm_state_stack_pop (pm_state_stack_t *stack) |
Pops a value off the stack. | |
bool | pm_state_stack_p (pm_state_stack_t *stack) |
Returns the value at the top of the stack. | |
A stack of boolean values.
Definition in file pm_state_stack.h.
typedef uint32_t pm_state_stack_t |
A struct that represents a stack of boolean values.
Definition at line 17 of file pm_state_stack.h.
bool pm_state_stack_p | ( | pm_state_stack_t * | stack | ) |
Returns the value at the top of the stack.
stack | The stack to get the value from. |
Definition at line 23 of file pm_state_stack.c.
void pm_state_stack_pop | ( | pm_state_stack_t * | stack | ) |
Pops a value off the stack.
stack | The stack to pop the value off of. |
Definition at line 15 of file pm_state_stack.c.
void pm_state_stack_push | ( | pm_state_stack_t * | stack, |
bool | value ) |
Pushes a value onto the stack.
stack | The stack to push the value onto. |
value | The value to push onto the stack. |
Definition at line 7 of file pm_state_stack.c.