From: Jan Nieuwenhuizen <janneke@gnu.org> Date: Sun, 21 Nov 2004 17:58:57 +0000 (+0000) Subject: (scm_from_bool): Add. X-Git-Tag: release/2.5.14~511 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f40c15110e524f6ee076e2de3dc987468f889abc;p=lilypond.git (scm_from_bool): Add. --- diff --git a/lily/include/guile-compatibility.hh b/lily/include/guile-compatibility.hh index 8f5bfb6595..581124d62a 100644 --- a/lily/include/guile-compatibility.hh +++ b/lily/include/guile-compatibility.hh @@ -36,6 +36,7 @@ inline SCM scm_cadar (SCM x) { return SCM_CADAR (x); } #define scm_gc_unregister_collectable_memory(a, b, c) scm_done_free (b) #define scm_gc_register_collectable_memory(a, b, c) scm_done_malloc (b) #define SCM_VECTOR_REF(v, i) (SCM_VELTS ((v))[(i)]) +#define scm_from_bool(x) (x ? SCM_BOOL_T : SCM_BOOL_F) #define scm_from_int(x) SCM_MAKINUM (x) #define scm_is_integer(x) SCM_INUMP (x) #define scm_is_string(x) SCM_STRINGP (x)