From f40c15110e524f6ee076e2de3dc987468f889abc Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sun, 21 Nov 2004 17:58:57 +0000 Subject: [PATCH] (scm_from_bool): Add. --- lily/include/guile-compatibility.hh | 1 + 1 file changed, 1 insertion(+) 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) -- 2.39.5