[Top][All Lists]

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

[WAS: [ANN] nyacc 0.80.3 released]

From: Jan Nieuwenhuizen
Subject: [WAS: [ANN] nyacc 0.80.3 released]
Date: Mon, 24 Jul 2017 14:52:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Matt Wette writes:

> NYACC V0.80.3 is released.

This will expand the both THEN clauses, having main return 0; where in
the second case, the ELSE clause should be expanded, having main return

This #define / #undef trick is used by tinycc, I just found it and now
worked around it by setting a second define instead.

    #define DEF

    #ifdef DEF
    int def () {return 0;}
    int def () {return 1;}

    #undef DEF

    #ifdef DEF
    int expand () {return 0;}
    int expand () {return 2;}

    main ()
      return def () + expand ();


Jan Nieuwenhuizen <address@hidden> | GNU LilyPond
Freelance IT | AvatarĀ®

reply via email to

[Prev in Thread] Current Thread [Next in Thread]