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
-
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
#elifdef
preprocessor macroThis is simply a productivity shortcut similar to
#elif
where the following statement gets rewritten from:to:
Add
#elifndef
preprocessor macroThis is simply an alternate syntax for the following
#elif
statement:to:
Beta Was this translation helpful? Give feedback.
All reactions