]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4418/1 add boolean-or-number? predicate
authorPaul Morris <paulwmorris@gmail.com>
Wed, 10 Jun 2015 03:45:40 +0000 (23:45 -0400)
committerJames Lowe <pkx166h@gmail.com>
Thu, 18 Jun 2015 04:16:03 +0000 (05:16 +0100)
scm/c++.scm

index ba38d5a05738e1b42cd4b94d64f860d91c17fbf1..badac67e5ca6f3a5ba3613edf46747b191ecbc38 100644 (file)
@@ -54,6 +54,9 @@
   (and (pair? x)
        (ly:moment? (car x)) (ly:moment? (cdr x))))
 
+(define-public (boolean-or-number? x)
+  (or (boolean? x) (number? x)))
+
 (define-public (boolean-or-symbol? x)
   (or (boolean? x) (symbol? x)))