Skip to content

Commit

Permalink
Improve syntax in init function
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel- committed Apr 6, 2017
1 parent 79b1fdd commit c9db47c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/init.cpp
Expand Up @@ -5,7 +5,7 @@
using namespace Rcpp;
using namespace dplyr;

#define DPLYR_REGISTER(__FUN__) R_RegisterCCallable( "dplyr", #__FUN__, (DL_FUNC)__FUN__ );
#define DPLYR_REGISTER(__FUN__) do { R_RegisterCCallable( "dplyr", #__FUN__, (DL_FUNC)__FUN__ ); } while(0);

SEXP get_cache() {
static SEXP cache = 0;
Expand All @@ -30,10 +30,10 @@ SEXP get_time_classes() {
}

extern "C" void R_init_dplyr(BOOST_ATTRIBUTE_UNUSED DllInfo* info) {
DPLYR_REGISTER(build_index_cpp)
DPLYR_REGISTER(registerHybridHandler)
DPLYR_REGISTER(build_index_cpp);
DPLYR_REGISTER(registerHybridHandler);

DPLYR_REGISTER(get_time_classes)
DPLYR_REGISTER(get_date_classes)
DPLYR_REGISTER(get_time_classes);
DPLYR_REGISTER(get_date_classes);
}

0 comments on commit c9db47c

Please sign in to comment.