MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghumor/comments/1vv58vy/how_do_you_disable_your_code/p5bztay/
r/programminghumor • u/developer_axe • Aug 22 '26
91 comments sorted by
View all comments
Show parent comment
1
My answer was to the given example.
If return doesn't compile , then just return 0 would do it.
0 u/geek-49 Aug 26 '26 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.
View all comments
Show parent comment
1
u/puzzled_orc Aug 23 '26
My answer was to the given example.
If return doesn't compile , then just return 0 would do it.