]> git.donarmstrong.com Git - lilypond.git/commitdiff
(scm_from_bool): Add.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 21 Nov 2004 17:58:57 +0000 (17:58 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 21 Nov 2004 17:58:57 +0000 (17:58 +0000)
lily/include/guile-compatibility.hh

index 8f5bfb65955c0e5b4cbb0cf8314825ee1f2aedd2..581124d62a2f77d8ae8ea67135b355755fdd0472 100644 (file)
@@ -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)