How do you indent preprocessor statements?

Just because preprocessing directives are “normally” not indented is not a good reason not to indent them:

#ifdef __WIN32__
    #include <pansen_win32>
#else
    #include <..>
    #ifdef SOMEOTHER
        stmts
    #endif
    maybe stmts
#endif

If you frequently have multiple levels of nesting of preprocessing directives, you should rework them to make them simpler.

Leave a Comment

techhipbettruvabetnorabahisbahis forumueduedueduseduseduseduseduedusedusedu