From: Groepaz (groepaz_at_gmx.net)
Date: 2003-02-26 20:01:32
On Wednesday 26 February 2003 10:03, Ullrich von Bassewitz wrote: > Hi! > > On Wed, Feb 26, 2003 at 01:59:14AM +0100, Groepaz wrote: > > it would actually be a smart move of the > > compiler to tell the line of the macro aswell :=P *hint* :=DD > > As with most other C compilers this is quite difficult, because macro > expansion is done first, and only the result is passed as text to the > scanner. This means that the compiler itself has no information that a > given piece of code stems from a macro expansion. Of course this could be > solved by embedding special _Pragma()s into the input stream, but this is a > lot of work and probably not worth all the trouble. well it would be nice to have in certain situations.... for example if you are working with code that someone else wrote and you dont really know offhand if that certain expression is a function or a macro. i understand that it would involve a lot of stunts in the compiler though :o) gpz ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2003-02-26 19:56:19 CET