X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fc%2B%2B.scm;h=fd965ac4d59d394bf5cd34e341689ad74b82ea45;hb=6d2278abbc50342fc699fdb17d1c44ebb3adcaaa;hp=a131e7f3428d95870bcc3ec05b1643fe7d899552;hpb=a82d8622e6b1be36169de7d2fe1f9aa88618933b;p=lilypond.git diff --git a/scm/c++.scm b/scm/c++.scm index a131e7f342..fd965ac4d5 100644 --- a/scm/c++.scm +++ b/scm/c++.scm @@ -1,6 +1,6 @@ ;;;; This file is part of LilyPond, the GNU music typesetter. ;;;; -;;;; Copyright (C) 1998--2012 Jan Nieuwenhuizen +;;;; Copyright (C) 1998--2014 Jan Nieuwenhuizen ;;;; Han-Wen Nienhuys ;;;; ;;;; LilyPond is free software: you can redistribute it and/or modify @@ -33,6 +33,11 @@ (and (pair? x) (index? (car x)) (index? (cdr x)))) +(define-public (rational-or-procedure? x) + (or + (and (rational? x) (exact? x)) + (procedure? x))) + (define-public (number-or-grob? x) (or (ly:grob? x) (number? x)))