manage values in a stack

This commit is contained in:
Yuichi Nishiwaki
2014-07-13 11:07:43 +09:00
parent 9e8d53088f
commit 2c4fd589bf
3 changed files with 83 additions and 8 deletions
+3 -1
View File
@@ -11,7 +11,7 @@ extern "C" {
struct pic_var {
PIC_OBJECT_HEADER
pic_value value;
pic_value stack;
};
#define pic_var_p(o) (pic_type(o) == PIC_TT_VAR)
@@ -21,6 +21,8 @@ struct pic_var *pic_var_new(pic_state *, pic_value);
pic_value pic_var_ref(pic_state *, const char *);
void pic_var_set(pic_state *, const char *, pic_value);
void pic_var_push(pic_state *, const char *, pic_value);
void pic_var_pop(pic_state *, const char *);
#if defined(__cplusplus)
}