mes.c: add boolean_p.

This commit is contained in:
Jan Nieuwenhuizen 2016-07-17 13:32:52 +02:00
parent f19d6dfde4
commit 0a497a2765

6
mes.c
View file

@ -477,6 +477,12 @@ builtin_p (scm *x)
? &scm_t : &scm_f; ? &scm_t : &scm_f;
} }
scm *
boolean_p (scm *x)
{
return (x == &scm_t || x == &scm_f) ? &scm_t : &scm_f;
}
scm * scm *
char_p (scm *x) char_p (scm *x)
{ {