File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1+ 2020-03-22 Mattias Ellert <
[email protected] >
2+
3+ * inst/include/Rcpp/exceptions_impl.h: Add include guard,
4+ Make sure RCPP_DEMANGLER_ENABLED is always defined,
5+ Add missing inline qualifier
6+
172020-03-18 Dirk Eddelbuettel <
[email protected] >
28
39 * DESCRIPTION (Version, Date): Roll minor version
Original file line number Diff line number Diff line change 1818// You should have received a copy of the GNU General Public License
1919// along with Rcpp. If not, see <http://www.gnu.org/licenses/>.
2020
21+ #ifndef Rcpp__exceptions_impl__h
22+ #define Rcpp__exceptions_impl__h
23+
2124// disable demangler on platforms where we have no support
2225#ifndef RCPP_DEMANGLER_ENABLED
2326# if defined(_WIN32) || \
3437# elif defined(__GNUC__) || defined(__clang__)
3538# include < execinfo.h>
3639# define RCPP_DEMANGLER_ENABLED 1
40+ # else
41+ # define RCPP_DEMANGLER_ENABLED 0
3742# endif
3843#endif
3944
4045namespace Rcpp {
4146
4247 // Extract mangled name e.g. ./test(baz+0x14)[0x400962]
4348#if RCPP_DEMANGLER_ENABLED
44- static std::string demangler_one (const char * input) { // #nocov start
49+ static inline std::string demangler_one (const char * input) { // #nocov start
4550
4651 static std::string buffer;
4752
@@ -102,3 +107,4 @@ namespace Rcpp {
102107
103108}
104109
110+ #endif
You can’t perform that action at this time.
0 commit comments