Sha256: 8b5ebe5be598c8d187d212e4b61af4eb7d75af64795011d5ad1732188c03d1ae

Contents?: true

Size: 587 Bytes

Versions: 5

Compression:

Stored size: 587 Bytes

Contents

#ifndef YP_STATE_STACK_H
#define YP_STATE_STACK_H

#include "yarp/defines.h"

#include <stdbool.h>
#include <stdint.h>

// A struct that represents a stack of bools.
typedef uint32_t yp_state_stack_t;

// Initializes the state stack to an empty stack.
#define YP_STATE_STACK_EMPTY ((yp_state_stack_t) 0)

// Pushes a value onto the stack.
void yp_state_stack_push(yp_state_stack_t *stack, bool value);

// Pops a value off the stack.
void yp_state_stack_pop(yp_state_stack_t *stack);

// Returns the value at the top of the stack.
bool yp_state_stack_p(yp_state_stack_t *stack);

#endif

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yarp-0.12.0 include/yarp/util/yp_state_stack.h
yarp-0.11.0 include/yarp/util/yp_state_stack.h
yarp-0.10.0 include/yarp/util/yp_state_stack.h
yarp-0.9.0 include/yarp/util/yp_state_stack.h
yarp-0.8.0 include/yarp/util/yp_state_stack.h