[Geany-devel] Adding auto-close brackets, braces and string

Nick Treleaven nick.treleaven at xxxxx
Tue Dec 2 12:38:11 UTC 2008


On Tue, 2 Dec 2008 06:03:36 +0100 (CET)
ioguix at free.fr wrote:

> One question: to keep the code readable, I used these macros to
> define the values:
> #define AC_PARENTHESIS 1
> #define AC_CBRACKET 2
> #define AC_SBRACKET 4
> #define AC_SQUOTE 8
> #define AC_DQUOTE 16
> 
> What is your policy about that ? Is it ok or do you prefer to put
> values directly in the code ?

It would be best if you used an (anonymous) enum instead of macros IMO.

Regards,
Nick



More information about the Devel mailing list