#119 define macro for SDCC version

closed
Maarten Brock
None
5
2006-04-05
2006-03-14
Maarten Brock
No

It would be nice if SDCC would define a macro that
identifies its version. I guess the macro SDCC can be
used for it. Right now it's defined with -DSDCC=1,
maybe we should change that to -DSDCC=254.

Discussion

  • Maarten Brock
    Maarten Brock
    2006-04-05

    • assigned_to: nobody --> maartenbrock
    • status: open --> closed
     
  • Maarten Brock
    Maarten Brock
    2006-04-05

    Logged In: YES
    user_id=888171

    Implemented in SDCC 2.5.5 #1236.

     
  • Logged In: NO

    One step further in that direction: would it make sense to
    define SDCC_VERSION_CVS which as of today would hold 1236?

    Greetings,
    Frieder

     
  • Maarten Brock
    Maarten Brock
    2006-04-06

    Logged In: YES
    user_id=888171

    I considered that but thought it was overkill. I don't want
    to add it just because I can. There wasn't even a request
    for this feature before I posted it myself.