Skip to content

Instantly share code, notes, and snippets.

@nathan-russell
Created February 17, 2017 23:36
Show Gist options
  • Save nathan-russell/8c7164504459318e01804261469d4f8e to your computer and use it in GitHub Desktop.
Save nathan-russell/8c7164504459318e01804261469d4f8e to your computer and use it in GitHub Desktop.
// src/hinterface.cpp
#include "hinterface.h"
// [[Rcpp::export]]
int call_bla_in_hinterface()
{ return hinterface::bla().first; }
// [[Rcpp::export("bla")]]
void bla_()
{
std::pair<int, int> x = hinterface::bla();
std::printf(
"x.first = %d\nx.second = %d\n",
x.first, x.second
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment