Skip to content

Commit e5391cb

Browse files
Adding the function have_smithlab_cpp for checking if smithlab_cpp is available as a library
1 parent 8ddaa06 commit e5391cb

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

smithlab_utils.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
using std::vector;
2929
using std::string;
3030

31+
char have_smithlab_cpp() {return 1;}
32+
3133
/* Performs Hochberg step-up p-value adjustment.
3234
*/
3335
void smithlab::correct_pvals(const size_t n_tests, vector<double> &pvals ) {

smithlab_utils.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#include <numeric>
3838
#include <iomanip>
3939

40+
extern "C" {char have_smithlab_cpp();}
4041

4142
namespace smithlab {
4243
template <class In, class Out, class Pred> Out

0 commit comments

Comments
 (0)