#ifndef _JOVE_SYS_LOCKSTACK_H #define _JOVE_SYS_LOCKSTACK_H 1 #include #include "hal/obj.h" #include "config.h" typedef struct lockstack { size_t depth; jove_owned_obj_t *stack[LOCKSTACK_MAX]; } lockstack_t; jove_owned_obj_t *lockstack_push(lockstack_t *stack, jove_owned_obj_t *obj); jove_obj_t *lockstack_pop(lockstack_t *stack); void lockstack_popall(lockstack_t *stack); #endif