[U-Boot] Coding style: #ifdef or #if defined()
Wolfgang Denk
wd at denx.de
Mon Feb 10 19:41:45 CET 2014
Dear Manish Badarkhe,
In message <CAKDJKT4c200-zdd3TuCn3bU_bE9UyxjhYe--fUHGB9+sOYP6cQ at mail.gmail.com> you wrote:
>
> I have gone through code conditional compilation macros are used
> as #ifdef, sometime #if defined().
>
> What is preferred way to provide such conditional preprocessor macro
> as per coding style?
If this is just a logican decision, please always use #ifdef only.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Children are natural mimics who act like their parents despite every
effort to teach them good manners.
More information about the U-Boot
mailing list