Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by asveikau

4 years ago

Of course for your quoted use it's more common to see:

    #define debug(...) ((void)0)

This forces you to use debug() as a statement. If no value is defined you could omit the semicolon on a debug() statement and it still compiles.

0 comments

asveikau

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities