Skip to content

Commit d0ef311

Browse files
authored
Merge pull request #1191 from RcppCore/feature/new_headers
Additional headers for easy-to-use light(er,est) entry points
2 parents 940fb23 + 022bac6 commit d0ef311

File tree

5 files changed

+104
-0
lines changed

5 files changed

+104
-0
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2021-12-08 Dirk Eddelbuettel <[email protected]>
2+
3+
* inst/include/Rcpp/Rcpp: Added as new entry point
4+
* inst/include/Rcpp/Light: Added as lighter-weight entry point
5+
* inst/include/Rcpp/Lighter: Idem
6+
* inst/include/Rcpp/Lightest: Idem
7+
18
2021-11-30 Dirk Eddelbuettel <[email protected]>
29

310
* README.md: Remove Travis badge

inst/include/Rcpp/Light

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Rcpp/Light: R/C++ interface class library -- without Rcpp Modules
2+
//
3+
// Copyright (C) 2008 - 2021 Dirk Eddelbuettel
4+
// Copyright (C) 2009 - 2021 Dirk Eddelbuettel and Romain Francois
5+
//
6+
// This file is part of Rcpp.
7+
//
8+
// Rcpp is free software: you can redistribute it and/or modify it
9+
// under the terms of the GNU General Public License as published by
10+
// the Free Software Foundation, either version 2 of the License, or
11+
// (at your option) any later version.
12+
//
13+
// Rcpp is distributed in the hope that it will be useful, but
14+
// WITHOUT ANY WARRANTY; without even the implied warranty of
15+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
// GNU General Public License for more details.
17+
//
18+
// You should have received a copy of the GNU General Public License
19+
// along with Rcpp. If not, see <http://www.gnu.org/licenses/>.
20+
21+
// no Modules
22+
#define RCPP_NO_MODULES
23+
24+
// include Rcpp as usual
25+
#include <Rcpp/Rcpp>

inst/include/Rcpp/Lighter

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Rcpp/Lighter: R/C++ interface class library -- without Rcpp Modules + RTTI
2+
//
3+
// Copyright (C) 2008 - 2021 Dirk Eddelbuettel
4+
// Copyright (C) 2009 - 2021 Dirk Eddelbuettel and Romain Francois
5+
//
6+
// This file is part of Rcpp.
7+
//
8+
// Rcpp is free software: you can redistribute it and/or modify it
9+
// under the terms of the GNU General Public License as published by
10+
// the Free Software Foundation, either version 2 of the License, or
11+
// (at your option) any later version.
12+
//
13+
// Rcpp is distributed in the hope that it will be useful, but
14+
// WITHOUT ANY WARRANTY; without even the implied warranty of
15+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
// GNU General Public License for more details.
17+
//
18+
// You should have received a copy of the GNU General Public License
19+
// along with Rcpp. If not, see <http://www.gnu.org/licenses/>.
20+
21+
// no RTTI (actually implies no Modules) -- solid gain
22+
#define RCPP_NO_RTTI
23+
24+
// include Rcpp/Light which includes Rcpp
25+
#include <Rcpp/Light>

inst/include/Rcpp/Lightest

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Rcpp/Lightest: R/C++ interface class library -- without Rcpp Modules, RTTI, Sugar
2+
//
3+
// Copyright (C) 2008 - 2021 Dirk Eddelbuettel
4+
// Copyright (C) 2009 - 2021 Dirk Eddelbuettel and Romain Francois
5+
//
6+
// This file is part of Rcpp.
7+
//
8+
// Rcpp is free software: you can redistribute it and/or modify it
9+
// under the terms of the GNU General Public License as published by
10+
// the Free Software Foundation, either version 2 of the License, or
11+
// (at your option) any later version.
12+
//
13+
// Rcpp is distributed in the hope that it will be useful, but
14+
// WITHOUT ANY WARRANTY; without even the implied warranty of
15+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
// GNU General Public License for more details.
17+
//
18+
// You should have received a copy of the GNU General Public License
19+
// along with Rcpp. If not, see <http://www.gnu.org/licenses/>.
20+
// New (draft) header with optional components off
21+
22+
// no Sugar (but unclear how much it helps)
23+
#define RCPP_NO_SUGAR
24+
25+
// include Rcpp/Lighter
26+
#include <Rcpp/Lighter>

inst/include/Rcpp/Rcpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Rcpp/Rcpp: R/C++ interface class library
2+
//
3+
// Copyright (C) 2008 - 2021 Dirk Eddelbuettel
4+
// Copyright (C) 2009 - 2021 Dirk Eddelbuettel and Romain Francois
5+
//
6+
// This file is part of Rcpp.
7+
//
8+
// Rcpp is free software: you can redistribute it and/or modify it
9+
// under the terms of the GNU General Public License as published by
10+
// the Free Software Foundation, either version 2 of the License, or
11+
// (at your option) any later version.
12+
//
13+
// Rcpp is distributed in the hope that it will be useful, but
14+
// WITHOUT ANY WARRANTY; without even the implied warranty of
15+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
// GNU General Public License for more details.
17+
//
18+
// You should have received a copy of the GNU General Public License
19+
// along with Rcpp. If not, see <http://www.gnu.org/licenses/>.
20+
21+
#include <Rcpp.h>

0 commit comments

Comments
 (0)