Skip to content

Commit 859438f

Browse files
added missing is<Language> and is<DottedPair>
1 parent 7178239 commit 859438f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2013-10-16 Romain Francois <romain@r-enthusiasts.com>
2+
3+
* include/Rcpp/api/meat/is.h : added missing implementation for
4+
is<Language> and is<DottedPair>
5+
16
2013-10-14 Romain Francois <romain@r-enthusiasts.com>
27

38
* inst/include/Rcpp/protection/protection.h: added Shield/Shelter/Armor

inst/include/Rcpp/api/meat/is.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ namespace internal{
7474
template <> inline bool is__simple<LogicalVector>( SEXP x ){
7575
return TYPEOF(x) == LGLSXP ;
7676
}
77+
template <> inline bool is__simple<Language>( SEXP x ){
78+
return TYPEOF(x) == LANGSXP ;
79+
}
80+
template <> inline bool is__simple<DottedPair>( SEXP x ){
81+
return TYPEOF(x) == LANGSXP || TYPEOF(x) == LISTSXP ;
82+
}
7783
template <> inline bool is__simple<List>( SEXP x ){
7884
return TYPEOF(x) == VECSXP ;
7985
}

0 commit comments

Comments
 (0)