Is there a dedicated way to write a dummy line in C? (kind of like pass
in Python) If you are wondering why I don't just leave a blank line, I need something that I can attach an Xcode breakpoint to-- if there is nothing there the breakpoint will skip to the next line!! So far I've been using sleep(0)
for this purpose. I was wondering if there was a better/more efficient/more official way to accomplish this.
Oh, and I'm using Objective-C, so if there is anything that was added in Obj-C that fits this purpose, feel free to include it.
Put a semi colon. It works in C and Obj-C (and Java, and Swift, and many other languages).
;
Add a trivial assignment
var = var;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With