[Rd] Usage of PROTECT_WITH_INDEX in R-exts

Kirill Müller kirill.mueller at ivt.baug.ethz.ch
Mon Jun 5 17:30:20 CEST 2017


I've noted a minor inconsistency in the documentation: Current R-exts reads

s = PROTECT_WITH_INDEX(eval(OS->R_fcall, OS->R_env), &ipx);

but I believe it has to be

PROTECT_WITH_INDEX(s = eval(OS->R_fcall, OS->R_env), &ipx);

because PROTECT_WITH_INDEX() returns void.

Best regards


More information about the R-devel mailing list