Sha256: 958d2b1e793ad0b80b8b5200da8ba5746ee48f4b9dde239df90f70413fa83e9b
Contents?: true
Size: 594 Bytes
Versions: 12
Compression:
Stored size: 594 Bytes
Contents
#ifndef PRISM_STATE_STACK_H #define PRISM_STATE_STACK_H #include "prism/defines.h" #include <stdbool.h> #include <stdint.h> // A struct that represents a stack of bools. typedef uint32_t pm_state_stack_t; // Initializes the state stack to an empty stack. #define PM_STATE_STACK_EMPTY ((pm_state_stack_t) 0) // Pushes a value onto the stack. void pm_state_stack_push(pm_state_stack_t *stack, bool value); // Pops a value off the stack. void pm_state_stack_pop(pm_state_stack_t *stack); // Returns the value at the top of the stack. bool pm_state_stack_p(pm_state_stack_t *stack); #endif
Version data entries
12 entries across 12 versions & 3 rubygems