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

Re: [MiNT] Coding style. Pre-processor directives



Alan Hourihane wrote:
I'm happier with no spaces.

Me too.

BUT in some sources the space is used as indentation level, this is not a bad idea.

#ifdef FOO
# include "xxxx.h"
#else
# if SOMETHING_ELSE
#  define XXXXXX
# endif
#endif

Anyway, I think that having well defined style guidelines for a project is a good thing. So no developer will be tempted to reformat the work of someone else.

--
Vincent Rivière