[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CC-mode indentation after macros
From: |
Stefan Monnier |
Subject: |
Re: CC-mode indentation after macros |
Date: |
Tue, 19 Oct 2004 20:04:40 GMT |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) |
> #ifdef DEBUG
> #define DEB(x) x
> #else
> #define DEB(x)
> #endif
> These are used in the code like this:
> void foo(void)
> {
> ...
> DEB(printf("Debug print";)
> ...
> }
> That is, in many places the semicolon is inside the macro not outside
> (that would generate empty statements that lint would complain over).
Then run lint with DEBUG enabled so the statements aren't empty.
Stefan