File: overhead_2.c

package info (click to toggle)
rcpp 1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,480 kB
  • sloc: cpp: 27,436; ansic: 7,778; sh: 53; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 501 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; tab-width: 8 -*-

// This is a rewrite of the 'Writing R Extensions' section 5.10.1 example
#include <R.h>
#include <Rdefines.h>
#include <R_ext/Rdynload.h>

SEXP overhead_c(SEXP a, SEXP b) {
    return R_NilValue ;
}

void R_init_overhead_2(DllInfo *info){

     R_CallMethodDef callMethods[]  = {
       {"overhead_c", (DL_FUNC) &overhead_c, 2},
       {NULL, NULL, 0}
     };

     R_registerRoutines(info, NULL, callMethods, NULL, NULL);
}