File: attributes.cpp

package info (click to toggle)
rcpp 0.12.9-1~bpo8%2B1
  • links: PTS
  • area: main
  • in suites: jessie-backports
  • size: 10,776 kB
  • sloc: ansic: 43,728; cpp: 39,001; sh: 21; makefile: 1
file content (22 lines) | stat: -rw-r--r-- 673 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <Rcpp.h>
using namespace Rcpp;

// include a dummy header file to test support for local includes
#include "attributes.hpp"

//' @param foo // don't do anything to this
//'     // or this
//' @param bar " // or this guy "
// [[Rcpp::export]] // this comment marks the following function for export
std::string comments_test( /// // "\""" some '"// more / // ///garbge"
    std::string msg = "Start a C++ line comment with the characters \"//\"" // "" \" ""
) { // """
    return msg;
}

std::string parse_declaration_test(std::string msg) {
    return msg;
}

// [[Rcpp::export]]
std::string parse_declaration_test(std::string msg = "Parse function declaration");