Skip to content

Commit 24fe556

Browse files
committed
renamed SIMPLECPP_UNSAFE_API to SIMPLECPP_TOKENLIST_ALLOW_PTR
1 parent 809b624 commit 24fe556

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

simplecpp.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@
5656
# pragma warning(disable : 4244)
5757
#endif
5858

59-
// provide unsafe (i.e. raw pointer) API for TokenList
59+
// provide legacy (i.e. raw pointer) API for TokenList
6060
// note: std::istream has an overhead compared to raw pointers
61-
#ifndef SIMPLECPP_UNSAFE_API
62-
// still provide the unsafe API in case we lack the performant wrappers
61+
#ifndef SIMPLECPP_TOKENLIST_ALLOW_PTR
62+
// still provide the legacy API in case we lack the performant wrappers
6363
# if !defined(__cpp_lib_string_view) && !defined(__cpp_lib_span)
64-
# define SIMPLECPP_UNSAFE_API
64+
# define SIMPLECPP_TOKENLIST_ALLOW_PTR
6565
# endif
6666
#endif
6767

@@ -235,7 +235,7 @@ namespace simplecpp {
235235
explicit TokenList(std::vector<std::string> &filenames);
236236
/** generates a token list from the given std::istream parameter */
237237
TokenList(std::istream &istr, std::vector<std::string> &filenames, const std::string &filename=std::string(), OutputList *outputList = nullptr);
238-
#ifdef SIMPLECPP_UNSAFE_API
238+
#ifdef SIMPLECPP_TOKENLIST_ALLOW_PTR
239239
/** generates a token list from the given buffer */
240240
template<size_t size>
241241
TokenList(const char (&data)[size], std::vector<std::string> &filenames, const std::string &filename=std::string(), OutputList *outputList = nullptr)

0 commit comments

Comments
 (0)