From: David Kastrup Date: Wed, 26 Sep 2012 12:49:52 +0000 (+0200) Subject: Add string-or-music? predicate X-Git-Tag: release/2.17.4-1~9 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d9329d2828a1f271932175b6f0dab82eb29e1f5d;p=lilypond.git Add string-or-music? predicate --- diff --git a/scm/c++.scm b/scm/c++.scm index ded5e9b120..444a3e9ba6 100644 --- a/scm/c++.scm +++ b/scm/c++.scm @@ -57,6 +57,9 @@ (define-public (string-or-pair? x) (or (string? x) (pair? x))) +(define-public (string-or-music? x) + (or (string? x) (ly:music? x))) + (define-public (number-or-pair? x) (or (number? x) (pair? x))) diff --git a/scm/lily.scm b/scm/lily.scm index 9bc04dbddf..3ee924a1b1 100644 --- a/scm/lily.scm +++ b/scm/lily.scm @@ -505,6 +505,7 @@ messages into errors.") (,rhythmic-location? . "rhythmic location") (,scheme? . "any type") (,string-or-pair? . "string or pair") + (,string-or-music? . "string or music") (,string-or-symbol? . "string or symbol") (,void? . "void") ))