Indent block inside a preprocessor #if block

Yuri D'Elia <[email protected]> Tue, 25 Oct 2022 21:08:44 +0200
Newsgroups gmane.emacs.cc-mode.general
Message-ID <[email protected]>
I'm working on a code base which is particularly heavy on preprocessor
conditional blocks.

Syntax inside a conditional is indended by one level, as such:

void body() {
  statement;
  #if EXPR
    statement;
  #else
    statement;
    #if EXPR
      statement;
    #endif
  #endif
}

Is there any way to indent the statements inside the #if/#ifdef/#else
blocks?

I can't see any relevant function to achieve this style aside from
setting (cpp-macro . 0).

Any suggestion on how to work with this code style would be appreciated.