Ruby 3.3.2p78 (2024-05-30 revision e5a195edf62fe1bf7146a191da13fa1c4fecbd71)
pm_state_stack.h
Go to the documentation of this file.
1
6#ifndef PRISM_STATE_STACK_H
7#define PRISM_STATE_STACK_H
8
9#include "prism/defines.h"
10
11#include <stdbool.h>
12#include <stdint.h>
13
17typedef uint32_t pm_state_stack_t;
18
25void pm_state_stack_push(pm_state_stack_t *stack, bool value);
26
33
41
42#endif
uint32_t pm_state_stack_t
A struct that represents a stack of boolean values.
void pm_state_stack_pop(pm_state_stack_t *stack)
Pops a value off the stack.
void pm_state_stack_push(pm_state_stack_t *stack, bool value)
Pushes a value onto the stack.
bool pm_state_stack_p(pm_state_stack_t *stack)
Returns the value at the top of the stack.
Macro definitions used throughout the prism library.
C99 shim for <stdbool.h>