Skip to content

Additional headers for easy-to-use light(er,est) entry points #1191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2021-12-08 Dirk Eddelbuettel <edd@debian.org>

* inst/include/Rcpp/Rcpp: Added as new entry point
* inst/include/Rcpp/Light: Added as lighter-weight entry point
* inst/include/Rcpp/Lighter: Idem
* inst/include/Rcpp/Lightest: Idem

2021-11-30 Dirk Eddelbuettel <edd@debian.org>

* README.md: Remove Travis badge
Expand Down
25 changes: 25 additions & 0 deletions inst/include/Rcpp/Light
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Rcpp/Light: R/C++ interface class library -- without Rcpp Modules
//
// Copyright (C) 2008 - 2021 Dirk Eddelbuettel
// Copyright (C) 2009 - 2021 Dirk Eddelbuettel and Romain Francois
//
// This file is part of Rcpp.
//
// Rcpp is free software: you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 2 of the License, or
// (at your option) any later version.
//
// Rcpp is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Rcpp. If not, see <http://www.gnu.org/licenses/>.

// no Modules
#define RCPP_NO_MODULES

// include Rcpp as usual
#include <Rcpp/Rcpp>
25 changes: 25 additions & 0 deletions inst/include/Rcpp/Lighter
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Rcpp/Lighter: R/C++ interface class library -- without Rcpp Modules + RTTI
//
// Copyright (C) 2008 - 2021 Dirk Eddelbuettel
// Copyright (C) 2009 - 2021 Dirk Eddelbuettel and Romain Francois
//
// This file is part of Rcpp.
//
// Rcpp is free software: you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 2 of the License, or
// (at your option) any later version.
//
// Rcpp is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Rcpp. If not, see <http://www.gnu.org/licenses/>.

// no RTTI (actually implies no Modules) -- solid gain
#define RCPP_NO_RTTI

// include Rcpp/Light which includes Rcpp
#include <Rcpp/Light>
26 changes: 26 additions & 0 deletions inst/include/Rcpp/Lightest
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Rcpp/Lightest: R/C++ interface class library -- without Rcpp Modules, RTTI, Sugar
//
// Copyright (C) 2008 - 2021 Dirk Eddelbuettel
// Copyright (C) 2009 - 2021 Dirk Eddelbuettel and Romain Francois
//
// This file is part of Rcpp.
//
// Rcpp is free software: you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 2 of the License, or
// (at your option) any later version.
//
// Rcpp is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Rcpp. If not, see <http://www.gnu.org/licenses/>.
// New (draft) header with optional components off

// no Sugar (but unclear how much it helps)
#define RCPP_NO_SUGAR

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

#include <Rcpp.h>