On Thu, 5 Feb 2009 16:28:55 +1030 "Daniel O'Connor" <docon...@gsoft.com.au> wrote:
> I had a go at getting that to work with preprocessor magic but I don't think > it's possible (I'm no CPP guru though). > > Actually, how about.. > > #define FOO "\070" > #define getOrd(x) (x)[0] Oh, works impeccably, thanks Daniel ! :-) As a newbee, so far I have never ventured into using #defines for anything else than plain constants, but looks like making "functions" is not that difficult it appears in your example, yet incredibly useful/practical ! :o) -- Vince, learning a little bit (pun intented !) every day... _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list