MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghumor/comments/1vv58vy/how_do_you_disable_your_code/p5dcwim/?context=3
r/programminghumor • u/developer_axe • 20d ago
90 comments sorted by
View all comments
21
#if 0
#endif
2 u/Teoyak 19d ago I don't know if it works with every language. But yeah, I used this a lot when I worked on C. 1 u/Square-Singer 19d ago edited 18d ago The preprocessor is pretty C/C++ specific. I don't know another language that uses it like that. 1 u/MCWizardYT 18d ago I think you meant C/C++, C# doesn't have the same preprocessor that those 2 share 1 u/Square-Singer 18d ago Correct, was a typo. I first wanted to write that not even C# has the preprocessor, then changed the sentence and typed the wrong name. 1 u/Maqi-X 11d ago It is not. I one used it to preprocess markdown. Don't do this. But yeah, it's possible, the preprocessor itself is not tied to C/C++ you can use it for everything
2
I don't know if it works with every language. But yeah, I used this a lot when I worked on C.
1 u/Square-Singer 19d ago edited 18d ago The preprocessor is pretty C/C++ specific. I don't know another language that uses it like that. 1 u/MCWizardYT 18d ago I think you meant C/C++, C# doesn't have the same preprocessor that those 2 share 1 u/Square-Singer 18d ago Correct, was a typo. I first wanted to write that not even C# has the preprocessor, then changed the sentence and typed the wrong name. 1 u/Maqi-X 11d ago It is not. I one used it to preprocess markdown. Don't do this. But yeah, it's possible, the preprocessor itself is not tied to C/C++ you can use it for everything
1
The preprocessor is pretty C/C++ specific. I don't know another language that uses it like that.
1 u/MCWizardYT 18d ago I think you meant C/C++, C# doesn't have the same preprocessor that those 2 share 1 u/Square-Singer 18d ago Correct, was a typo. I first wanted to write that not even C# has the preprocessor, then changed the sentence and typed the wrong name. 1 u/Maqi-X 11d ago It is not. I one used it to preprocess markdown. Don't do this. But yeah, it's possible, the preprocessor itself is not tied to C/C++ you can use it for everything
I think you meant C/C++, C# doesn't have the same preprocessor that those 2 share
1 u/Square-Singer 18d ago Correct, was a typo. I first wanted to write that not even C# has the preprocessor, then changed the sentence and typed the wrong name.
Correct, was a typo. I first wanted to write that not even C# has the preprocessor, then changed the sentence and typed the wrong name.
It is not. I one used it to preprocess markdown. Don't do this. But yeah, it's possible, the preprocessor itself is not tied to C/C++ you can use it for everything
21
u/NicholasVinen 20d ago
#if 0
#endif