Skip to content

Conversation

@firewave
Copy link
Collaborator

@firewave firewave commented Jan 14, 2026

also disable their usage in main.cpp

: TokenList(data, size-1, filenames, filename, outputList, 0)
{}
#ifdef SIMPLECPP_TOKENLIST_ALLOW_PTR
#if SIMPLECPP_TOKENLIST_ALLOW_PTR
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this macro is optional, I have the feeling it's better to write:

Suggested change
#if SIMPLECPP_TOKENLIST_ALLOW_PTR
#if defined(SIMPLECPP_TOKENLIST_ALLOW_PTR) && SIMPLECPP_TOKENLIST_ALLOW_PTR

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure what the standard says about this condition if the macro is not defined.

Copy link
Collaborator Author

@firewave firewave Jan 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code above will make sure it is always defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants