[Rd] Rf_protect in Rinternals.h

From: Hans-Peter <gchappi_at_gmail.com>
Date: Wed 08 Feb 2006 - 17:07:56 GMT


Hello!

I'd like to ask you a question about c (macros):

In Rinternals.h are defined:

a)   SEXP Rf_protect(SEXP);
b)   #define protect Rf_protect
c)   #define PROTECT(s)	protect(s)

As far as I understand the calls Rf_protect( x ), protect( x ) and PROTECT( x ) are all equalent.

So whats the reason that there are 2 macros defined? Why 3 times the same when 1 distinct function would be enough?

Thanks for some enlightenment...

--
Regards,
Hans-Peter

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Thu Feb 09 05:14:05 2006

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:40 GMT