X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fscheme-listener-scheme.cc;h=01eaa22ba198da2dbb3a8a7aa92c592caa34c2bd;hb=ee232b8901151e7371f77b099be6894bfcfad792;hp=7e8370068f3afe1d87ff898b1bbc795fcd25e99d;hpb=8f5cd22af76fcb5c77853a5ede8b94ebef97caef;p=lilypond.git diff --git a/lily/scheme-listener-scheme.cc b/lily/scheme-listener-scheme.cc index 7e8370068f..01eaa22ba1 100644 --- a/lily/scheme-listener-scheme.cc +++ b/lily/scheme-listener-scheme.cc @@ -3,20 +3,19 @@ source file of the GNU LilyPond music typesetter - (c) 2006 Erik Sandberg + (c) 2006--2007 Erik Sandberg */ #include "scheme-listener.hh" LY_DEFINE (ly_make_listener, "ly:make-listener", 1, 0, 0, (SCM callback), - "Creates a listener. Any time the listener hears\n" - " an object, it will call @var{callback}\n" - " with that object.\n" + "Create a listener. Any time the listener hears an object," + " it will call @var{callback} with that object.\n" "\n" - " @var{callback} should take exactly one argument." ) + "@var{callback} should take exactly one argument.") { - SCM_ASSERT_TYPE (ly_is_procedure (callback), callback, SCM_ARG1, __FUNCTION__, "procedure"); + LY_ASSERT_TYPE (ly_is_procedure, callback, 1); Scheme_listener *l = new Scheme_listener (callback); SCM listener = GET_LISTENER (l->call).smobbed_copy (); l->unprotect ();