Re: [cc65] Re: Macro naming

From: Spiro Trikaliotis <ml-cc651trikaliotis.net>
Date: 2008-05-28 19:04:29
Hello,

* On Wed, May 28, 2008 at 02:43:28PM +0100 Jonathan Graham Harston wrote:
  
> That suggests I should start off any code with something like:
>  
> #ifdef __bbc__
> #define __BBC__
> #endif
> #ifdef __BBC__
> #define __bbc__
> #endif

Is this really sensible? If you start this, you could also start for
some "unusual" compilers like

#ifdef _THIS_IS_A_BBC__
#define __bbc__
#define _BBC_
#endif

#ifdef _THIS_IS_ANOTHER_COMPILERS_BBC__
...
#endif

and so on. Here, we are in the name space of the compiler, and it can
use names it likes.

What exactly do you want to achieve? I could not understand it from your
original post.

Regards,
   Spiro.

-- 
Spiro R. Trikaliotis                              http://opencbm.sf.net/
http://www.trikaliotis.net/                     http://www.viceteam.org/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed May 28 19:04:50 2008

This archive was generated by hypermail 2.1.8 : 2008-05-28 19:04:51 CEST