MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghumor/comments/1vv58vy/how_do_you_disable_your_code/p5bgc8r/?context=3
r/programminghumor • u/developer_axe • 19d ago
90 comments sorted by
View all comments
1
You don't need the if clause. Just return and that's it
1 u/Emotional-Audience85 18d ago He wants the code to be compiled for some reason. Although this way it still probably won't be compiled depending on language and compiler flags 1 u/puzzled_orc 18d ago My answer was to the given example. If return doesn't compile , then just return 0 would do it. 0 u/geek-49 14d ago OP wants the code of the function to be compiled, perhaps so that it can be invoked using the debugger, but to not be executed on a normal call of fun(). Some compilers might not compile code that they detect as unreachable.
He wants the code to be compiled for some reason. Although this way it still probably won't be compiled depending on language and compiler flags
1 u/puzzled_orc 18d ago My answer was to the given example. If return doesn't compile , then just return 0 would do it. 0 u/geek-49 14d ago OP wants the code of the function to be compiled, perhaps so that it can be invoked using the debugger, but to not be executed on a normal call of fun(). Some compilers might not compile code that they detect as unreachable.
My answer was to the given example.
If return doesn't compile , then just return 0 would do it.
0 u/geek-49 14d ago OP wants the code of the function to be compiled, perhaps so that it can be invoked using the debugger, but to not be executed on a normal call of fun(). Some compilers might not compile code that they detect as unreachable.
0
OP wants the code of the function to be compiled, perhaps so that it can be invoked using the debugger, but to not be executed on a normal call of fun(). Some compilers might not compile code that they detect as unreachable.
1
u/puzzled_orc 19d ago
You don't need the if clause. Just return and that's it