[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [guile/scwm] SCM_HOOKP changed?
From: |
Thien-Thi Nguyen |
Subject: |
Re: [guile/scwm] SCM_HOOKP changed? |
Date: |
Mon, 16 Sep 2002 04:35:24 -0700 |
From: Marius Vollmer <address@hidden>
Date: 16 Sep 2002 11:50:33 +0200
This is wrong. SCM_HOOKP is for Scheme-level hooks. It is a variant
of scm_hook_p, like SCM_VECTORP is a variant of scm_vector_p.
There is no type predicate for C-level hooks (like there is no type
predicate for ints).
thanks for pointing this out. i've changed the docs to:
@example
if (SCM_NFALSEP (scm_hook_p (obj)))
scm_reset_hook_x (obj);
else
/* do something else (obj is not a hook) */
@end example
In addition to @code{scm_hook_p} there is a slightly faster variant:
@deftypefn {C Macro} int SCM_HOOKP (x)
Return 1 if @var{x} is a Scheme-level hook and 0 otherwise.
@end deftypefn
(will show up in 1.4.1.88 or so.)
thi
Re: [guile/scwm] SCM_HOOKP changed?, Marius Vollmer, 2002/09/15