- Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathtruefalse_macros.cpp
31 lines (25 loc) · 664 Bytes
/
truefalse_macros.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* @title Test for TRUE and FALSE macros
* @author Travers Ching
* @license GPL (>= 2)
*/
// TRUE and FALSE macros that may come with system headers on some systems
// But conflict with R.h (R_ext/Boolean.h)
// TRUE and FALSE macros should be undef in RcppParallel.h
#include<Rcpp.h>
#include<RcppParallel.h>
// [[Rcpp::depends(RcppParallel)]]
#ifndef TRUE
static_assert(true, "Macro TRUE does not exist");
#else
static_assert(false, "Macro TRUE exists");
#endif
#ifndef FALSE
static_assert(true, "Macro FALSE does not exist");
#else
static_assert(false, "Macro FALSE exists");
#endif
// [[Rcpp::export]]
inthush_no_export_warning() {
return1;
}