Skip to content

Commit c482be2

Browse files
committed
make simplecpp::TokenList constructors which take an array always available
1 parent 097f9c7 commit c482be2

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
@@ -257,7 +257,6 @@ namespace simplecpp {
257257
explicit TokenList(std::vector<std::string> &filenames);
258258
/** generates a token list from the given std::istream parameter */
259259
TokenList(std::istream &istr, std::vector<std::string> &filenames, const std::string &filename=std::string(), OutputList *outputList = nullptr);
260-
#ifdef SIMPLECPP_TOKENLIST_ALLOW_PTR
261260
/** generates a token list from the given buffer */
262261
template<size_t size>
263262
TokenList(const char (&data)[size], std::vector<std::string> &filenames, const std::string &filename=std::string(), OutputList *outputList = nullptr)
@@ -268,7 +267,7 @@ namespace simplecpp {
268267
TokenList(const unsigned char (&data)[size], std::vector<std::string> &filenames, const std::string &filename=std::string(), OutputList *outputList = nullptr)
269268
: TokenList(data, size-1, filenames, filename, outputList, 0)
270269
{}
271-
270+
#ifdef SIMPLECPP_TOKENLIST_ALLOW_PTR
272271
/** generates a token list from the given buffer */
273272
TokenList(const unsigned char* data, std::size_t size, std::vector<std::string> &filenames, const std::string &filename=std::string(), OutputList *outputList = nullptr)
274273
: TokenList(data, size, filenames, filename, outputList, 0)

0 commit comments

Comments
 (0)