insert type checks in pic_get_args

This commit is contained in:
Yuichi Nishiwaki
2013-10-28 00:40:10 +09:00
parent 5133e04c39
commit c77b8be011
2 changed files with 26 additions and 11 deletions
+1
View File
@@ -92,5 +92,6 @@ pic_value pic_int_value(int);
#define pic_int_p(v) ((v).type == PIC_VTYPE_INT)
#define pic_pair_p(v) (pic_type(v) == PIC_TT_PAIR)
#define pic_symbol_p(v) (pic_type(v) == PIC_TT_SYMBOL)
#define pic_str_p(v) (pic_type(v) == PIC_TT_STRING)
#endif