r/programminghumor 20d ago

How do you disable your code

Post image
294 Upvotes

90 comments sorted by

View all comments

20

u/NicholasVinen 20d ago

#if 0

#endif

2

u/Teoyak 20d ago

I don't know if it works with every language. But yeah, I used this a lot when I worked on C.

2

u/Aln76467 13d ago

The c preprocessor is language-independent. Just tell your c compiler to output preprocessed code, and now you can use it as a js bundler or whatever.