macros must be added to var_tbl
This commit is contained in:
parent
d2af692280
commit
94aac37443
|
@ -21,7 +21,7 @@ pic_defmacro(pic_state *pic, const char *name, struct pic_proc *macro)
|
|||
pic_abort(pic, "macro table overflow");
|
||||
}
|
||||
pic->stx[idx] = pic_syntax_new_macro(pic, pic_intern_cstr(pic, name), macro);
|
||||
xh_put(pic->global_tbl, name, ~idx);
|
||||
xh_put(pic->var_tbl, name, ~idx);
|
||||
pic->xlen++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue