Skip to content

Commit 1138767

Browse files
authored
Merge pull request #847 from romainfrancois/master
undef FALSE in Timer
2 parents 462914a + a78046f commit 1138767

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

inst/include/Rcpp/Benchmark/Timer.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,17 +120,17 @@ namespace Rcpp{
120120
out.attr("names") = names;
121121
return out;
122122
}
123-
123+
124124
static std::vector<Timer> get_timers(int n){
125125
return std::vector<Timer>( n, Timer() ) ;
126126
}
127-
127+
128128
inline nanotime_t now() const {
129129
return get_nanotime() ;
130130
}
131-
131+
132132
inline nanotime_t origin() const {
133-
return start_time ;
133+
return start_time ;
134134
}
135135

136136
private:
@@ -143,5 +143,8 @@ namespace Rcpp{
143143

144144
}
145145

146+
#ifdef FALSE
147+
#undef FALSE
146148
#endif
147149

150+
#endif

0 commit comments

Comments
 (0)