[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
2.
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;}
#else
int def () {return 1;}
#endif
#undef DEF
#ifdef DEF
int expand () {return 0;}
#else
int expand () {return 2;}
#endif
int
main ()
{
return def () + expand ();
}
Greetings,
janneke
--
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | AvatarĀ® http://AvatarAcademy.com
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [WAS: [ANN] nyacc 0.80.3 released],
Jan Nieuwenhuizen <=