Skip to content

Commit 0f5564d

Browse files
committed
make simplecpp::TokenList constructors which take an array always available [skip ci]
1 parent c8acd02 commit 0f5564d

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
@@ -255,7 +255,6 @@ namespace simplecpp {
255255
explicit TokenList(std::vector<std::string> &filenames);
256256
/** generates a token list from the given std::istream parameter */
257257
TokenList(std::istream &istr, std::vector<std::string> &filenames, const std::string &filename=std::string(), OutputList *outputList = nullptr);
258-
#ifdef SIMPLECPP_TOKENLIST_ALLOW_PTR
259258
/** generates a token list from the given buffer */
260259
template<size_t size>
261260
TokenList(const char (&data)[size], std::vector<std::string> &filenames, const std::string &filename=std::string(), OutputList *outputList = nullptr)
@@ -266,7 +265,7 @@ namespace simplecpp {
266265
TokenList(const unsigned char (&data)[size], std::vector<std::string> &filenames, const std::string &filename=std::string(), OutputList *outputList = nullptr)
267266
: TokenList(data, size-1, filenames, filename, outputList, 0)
268267
{}
269-
268+
#ifdef SIMPLECPP_TOKENLIST_ALLOW_PTR
270269
/** generates a token list from the given buffer */
271270
TokenList(const unsigned char* data, std::size_t size, std::vector<std::string> &filenames, const std::string &filename=std::string(), OutputList *outputList = nullptr)
272271
: TokenList(data, size, filenames, filename, outputList, 0)

0 commit comments

Comments
 (0)