I would like emacs to handle "#ifdef" just like "{" and "#endif" as "}" relative to indentation. For instance:
#ifdef __linux__ #include <sys/socket.h> #endif int func(void) { int foo = 0; #ifdef DO_STUFF foo = do_stuff(); #endif return foo; }
instead:
#ifdef __linux__ #include <sys/socket.h> #endif int func(void) { int foo = 0; #ifdef DO_STUFF foo = do_stuff(); #endif return foo; }
Communicating with "cpp-macro" does not do the trick. How can I do it? Thanks!
source share