add pic_test macro

This commit is contained in:
Yuichi Nishiwaki 2014-01-19 00:33:33 -08:00
parent ab411cc298
commit ec00ec0257
1 changed files with 2 additions and 0 deletions

View File

@ -157,6 +157,8 @@ struct pic_blob;
#define pic_str_p(v) (pic_type(v) == PIC_TT_STRING)
#define pic_vec_p(v) (pic_type(v) == PIC_TT_VECTOR)
#define pic_test(v) (! pic_false_p(v))
static inline enum pic_tt pic_type(pic_value);
static inline const char *pic_type_repr(enum pic_tt);