X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=inline;f=lily%2Fmusic-function-scheme.cc;h=f78a387336021f9c1166aec680b9fb1cae610e5c;hb=d544bd3103acc8175089ec6aeecd57376f2d201d;hp=06e57f083b7f51326a7248bdd2b589d4e51a3d54;hpb=9e69cb84d6ee5b0a861cd97869b10e3bdf0c833c;p=lilypond.git diff --git a/lily/music-function-scheme.cc b/lily/music-function-scheme.cc index 06e57f083b..f78a387336 100644 --- a/lily/music-function-scheme.cc +++ b/lily/music-function-scheme.cc @@ -1,30 +1,30 @@ #include "music-function.hh" LY_DEFINE (ly_music_function_p, "ly:music-function?", 1, 0, 0, - (SCM x), - "Is @var{x} an @code{music-function}?") + (SCM x), + "Is @var{x} a @code{music-function}?") { return is_music_function (x) ? SCM_BOOL_T : SCM_BOOL_F; } - + LY_DEFINE (ly_music_function_extract, "ly:music-function-extract", 1, 0, 0, - (SCM x), - "Return the Scheme function inside @var{x}") + (SCM x), + "Return the Scheme function inside@tie{}@var{x}.") { - SCM_ASSERT_TYPE(is_music_function (x), x, SCM_ARG1, __FUNCTION__, - "music function"); - - return SCM_CELL_OBJECT_1(x); + LY_ASSERT_TYPE (is_music_function, x, 1); + + return SCM_CELL_OBJECT_1 (x); } LY_DEFINE (ly_make_music_function, "ly:make-music-function", 2, 0, 0, - (SCM signature, SCM func), - "Make a function to process music, to be used for the " - "parser. @code{func} is the function, and @code{signature} describes " - "Its arguments. @code{signature} is a list containing either " - "@code{ly:music?} predicates or other type predicates.") + (SCM signature, SCM func), + "Make a function to process music, to be used for the" + " parser. @var{func} is the function, and @var{signature}" + " describes its arguments. @var{signature} is a list" + " containing either @code{ly:music?} predicates or other type" + " predicates.") { - SCM_ASSERT_TYPE(ly_is_procedure (func), func, SCM_ARG1, __FUNCTION__, "function"); - return make_music_function (signature, func); + LY_ASSERT_TYPE (ly_is_procedure, func, 1); + return make_music_function (signature, func); }