Sujet : Concatenated if and preprocessor
De : pozzugno (at) *nospam* gmail.com (pozz)
Groupes : comp.lang.cDate : 13. Mar 2025, 16:44:48
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vquuhg$34o8d$2@dont-email.me>
User-Agent : Mozilla Thunderbird
Consider this code:
if (cond1) {
...
} else if (cond2) {
...
} else if (cond3) {
...
}
I want to activate every single if with a macro preprocessor. All the combinations are possible: only the first, only the second, only the third, the first and second... and so on.
What's the best method to have a clean code that is always compiled without errors?
Haut de la page
Les messages affichés proviennent d'usenet.
NewsPortal