Skip to content

Commit 8805ee9

Browse files
committed
make simplecpp::TokenList constructors which take an array always available
1 parent 3ea626f commit 8805ee9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

simplecpp.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ namespace simplecpp {
251251
explicit TokenList(std::vector<std::string> &filenames);
252252
/** generates a token list from the given std::istream parameter */
253253
TokenList(std::istream &istr, std::vector<std::string> &filenames, const std::string &filename=std::string(), OutputList *outputList = nullptr);
254-
#ifdef SIMPLECPP_TOKENLIST_ALLOW_PTR
255254
/** generates a token list from the given buffer */
256255
template<size_t size>
257256
TokenList(const char (&data)[size], std::vector<std::string> &filenames, const std::string &filename=std::string(), OutputList *outputList = nullptr)
@@ -262,7 +261,7 @@ namespace simplecpp {
262261
TokenList(const unsigned char (&data)[size], std::vector<std::string> &filenames, const std::string &filename=std::string(), OutputList *outputList = nullptr)
263262
: TokenList(data, size-1, filenames, filename, outputList, 0)
264263
{}
265-
264+
#ifdef SIMPLECPP_TOKENLIST_ALLOW_PTR
266265
/** generates a token list from the given buffer */
267266
TokenList(const unsigned char* data, std::size_t size, std::vector<std::string> &filenames, const std::string &filename=std::string(), OutputList *outputList = nullptr)
268267
: TokenList(data, size, filenames, filename, outputList, 0)

0 commit comments

Comments
 (0)