bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

INDENT: Preprocessor directives.


From: David Balaguer
Subject: INDENT: Preprocessor directives.
Date: Wed, 02 May 2007 14:58:11 +0200
User-agent: Thunderbird 1.5.0.9 (X11/20070104)

Hello.

I'm using Indent at first time and I'm trying to keep a preprocessor directives style. Preprocessor conditional statements can be indented by to given number of spaces, but I want to know if there is any option which keeps the # symbol attached to the next word.
I mean, indented code looks like:

#if X
#   if Y
#      define Z 1
#   else
#      define Z 0
#   endif
#endif

But I'm trying to obtain:

#if X
 #if Y
    #define Z 1
 #else
    #define Z 0
 #endif
#endif

¿Is there any way to do this?

Thank you so much for your help.

David Balaguer.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]