Skip to content

Generic preprocessor improvements#17

Merged
ircmaxell merged 5 commits into
ircmaxell:masterfrom
bwoebi:preprocessor-fixes
Mar 15, 2022
Merged

Generic preprocessor improvements#17
ircmaxell merged 5 commits into
ircmaxell:masterfrom
bwoebi:preprocessor-fixes

Conversation

@bwoebi
Copy link
Copy Markdown
Collaborator

@bwoebi bwoebi commented Mar 14, 2022

Adds support for:

  • #include_next
  • immediate #elif chaining
  • variadic macros / __VA_ARGS__
  • #pragma once
  • <number>U

I haven't touched #8, i.e. pragma GCC error/warning. Not sure about that one. But do we need it? Isn't it enough to just have the normal #error one?

@bwoebi bwoebi force-pushed the preprocessor-fixes branch from e4d00d6 to 134668d Compare March 15, 2022 00:04
@ircmaxell
Copy link
Copy Markdown
Owner

I think eventually support should be added for #pragma error if for nothing else than compatibility, but for now definitely no worries.

@ircmaxell ircmaxell merged commit ad7c165 into ircmaxell:master Mar 15, 2022
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