mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-21 14:49:18 +02:00
using faster symbolp test when immediate symbols are disabled
This commit is contained in:
parent
4f45da310a
commit
793d3931e3
1 changed files with 5 additions and 0 deletions
|
@ -433,7 +433,12 @@ sexp sexp_make_flonum(sexp ctx, double f);
|
|||
#define sexp_seqp(x) (sexp_check_tag(x, SEXP_SEQ))
|
||||
#define sexp_litp(x) (sexp_check_tag(x, SEXP_LIT))
|
||||
#define sexp_contextp(x) (sexp_check_tag(x, SEXP_CONTEXT))
|
||||
|
||||
#if SEXP_USE_HUFF_SYMS
|
||||
#define sexp_symbolp(x) (sexp_isymbolp(x) || sexp_lsymbolp(x))
|
||||
#else
|
||||
#define sexp_symbolp(x) (sexp_lsymbolp(x))
|
||||
#endif
|
||||
|
||||
#define sexp_idp(x) \
|
||||
(sexp_symbolp(x) || (sexp_synclop(x) && sexp_symbolp(sexp_synclo_expr(x))))
|
||||
|
|
Loading…
Add table
Reference in a new issue