Skip to content

Commit bf35e22

Browse files
committed
header and include guard
1 parent 678c854 commit bf35e22

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

inst/include/Rcpp/utils/tinyformat.h

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
// -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*-
2+
//
3+
// tinyformat.h: Rcpp R/C++ interface class library -- tinyformat.h wrapper
4+
//
5+
// Copyright (C) 2008 - 2009 Dirk Eddelbuettel
6+
// Copyright (C) 2009 - 2017 Dirk Eddelbuettel and Romain Francois
7+
//
8+
// This file is part of Rcpp.
9+
//
10+
// Rcpp is free software: you can redistribute it and/or modify it
11+
// under the terms of the GNU General Public License as published by
12+
// the Free Software Foundation, either version 2 of the License, or
13+
// (at your option) any later version.
14+
//
15+
// Rcpp is distributed in the hope that it will be useful, but
16+
// WITHOUT ANY WARRANTY; without even the implied warranty of
17+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18+
// GNU General Public License for more details.
19+
//
20+
// You should have received a copy of the GNU General Public License
21+
// along with Rcpp. If not, see <http://www.gnu.org/licenses/>.
22+
23+
#ifndef Rcpp_tinyformat_h
24+
#define Rcpp_tinyformat_h
25+
126
namespace Rcpp {
227
void stop(const std::string& message);
328
}
@@ -13,3 +38,5 @@ void stop(const std::string& message);
1338
#define TINYFORMAT_ASSERT(cond) do if (!(cond)) ::Rcpp::stop("Assertion failed"); while(0)
1439

1540
#include "tinyformat/tinyformat.h"
41+
42+
#endif // #ifndef Rcpp_tinyformat_h

0 commit comments

Comments
 (0)