In article <[EMAIL PROTECTED]>,
Ludovic Courtès <[EMAIL PROTECTED]> wrote:
>Hi,
>
>I believe it *really* makes sense to turn `scm_is_pair ()' into a macro.
>
>--- orig/libguile/pairs.h
>+++ mod/libguile/pairs.h
>@@ -78,7 +78,7 @@
> SCM_API void scm_error_pair_access (SCM);
> #endif
> 
>-SCM_API int scm_is_pair (SCM x);
>+#define scm_is_pair(__obj)  (SCM_I_CONSP (__obj))

Why not use an inline function? That's cleaner, and you get the
backward compat for free.




_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel

Reply via email to