]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/lily-guile.hh
add typecheck to ly_assoc_get
[lilypond.git] / lily / include / lily-guile.hh
index 7349050810477bc1ae1f209906c1fd6c75b757be..efb283cfc18588262bf6f3fce32839a8baf4724f 100644 (file)
@@ -85,6 +85,7 @@ SCM ly_assoc_prepend_x (SCM alist, SCM key, SCM val);
 inline bool ly_is_fraction (SCM x) { return SCM_FRACTIONP(x) || scm_is_integer (x); }
     
 inline bool ly_is_list (SCM x) { return SCM_NFALSEP (scm_list_p (x)); }
+inline bool ly_cheap_is_list (SCM x) { return scm_is_pair (x) || x == SCM_EOL; }
 inline bool ly_is_procedure (SCM x) { return SCM_NFALSEP (scm_procedure_p (x)); }
 inline bool ly_is_port (SCM x) { return SCM_NFALSEP (scm_port_p (x)); }