[Rcpp-devel] Rcpp/longlong.h

Dirk Eddelbuettel edd at debian.org
Fri Sep 20 21:19:20 CEST 2013


On 20 September 2013 at 01:18, romain at r-enthusiasts.com wrote:
| I've now moved all occurences of long long to a single file : 
| Rcpp/longlong.h
| 
| Currently this file is included by RcppCommon.h, but we could e.g. 
| decide not to include it by default so that client code that wants to 
| use long long could just do:
| 
| #include <Rcpp.h>
| #include <Rcpp/longlong.h>
| 
| So that there are two layers of decision:
| - the user decides to use long long support
| - we still check that we can actually support it, i.e. wth 
| defined(__GNUC__) &&  defined(__LONG_LONG_MAX__) and __extension__

As discussed, R's manuals are pretty clear on this (eg no 'long long', see
Section 1.7 of Writing R Extensions) and I reverted to the same condition we
had before.

Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com


More information about the Rcpp-devel mailing list