LY_DEFINE (ly_dir_p, "ly:dir?",
1, 0, 0, (SCM s),
- "A type predicate. The direction@tie{}@code{s} is @code{-1},"
- " @code{0} or@tie{}@code{1}, where @code{-1} represents"
- " left or down and @code{1} represents right or up.")
+ "Is @var{s} a direction? Valid directions are @code{-1},"
+ " @code{0}, or@tie{}@code{1}, where @code{-1} represents"
+ " left or down, @code{1} represents right or up, and @code{0}"
+ " represents a neutral direction.")
{
if (scm_is_number (s))
{
LY_DEFINE (ly_music_p, "ly:music?",
1, 0, 0, (SCM obj),
- "Type predicate.")
+ "Is @var{obj} a Music object?")
{
return scm_from_bool (unsmob_music (obj));
}
LY_DEFINE (ly_music_list_p, "ly:music-list?",
1, 0, 0, (SCM lst),
- "Type predicate: Return true if @var{lst} is a list"
- " of music objects.")
+ "Is @var{lst} a list of music objects?")
{
if (scm_list_p (lst) == SCM_BOOL_T)
while (scm_is_pair (lst))
LY_DEFINE (ly_paper_system_p, "ly:paper-system?",
1, 0, 0, (SCM obj),
- "Type predicate.")
+ "Is @var{obj} a Prob object of type @code{paper-system}?")
{
return ly_prob_type_p (obj, ly_symbol2scm ("paper-system"));
}
}
LY_DEFINE (ly_simple_closure_p, "ly:simple-closure?",
- 1,0,0, (SCM clos),
- "Type predicate.")
+ 1, 0, 0, (SCM clos),
+ "Is @var{clos} a simple closure?")
{
return scm_from_bool (is_simple_closure (clos));
}