Add #elifdef and #elifndef to preprocessor #6140
kphillisjr
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A new feature for the preprocessor to reduce complexity for developers familiar with C++23 and C23 in implementing shaders. An example for C++ can be found on the C++ Reference website( See: https://en.cppreference.com/w/cpp/preprocessor/conditional ). This is mostly adding alternative syntax for elements already supported by the language.
Add
#elifdefpreprocessor macroThis is simply a productivity shortcut similar to
#elifwhere the following statement gets rewritten from:to:
Add
#elifndefpreprocessor macroThis is simply an alternate syntax for the following
#elifstatement:to:
Beta Was this translation helpful? Give feedback.
All reactions