On Tue, 23 Sep 2003, Stas Bekman wrote: > Randy Kobes wrote: [ .. ] > > There's not a __FUNCTION__ macro with VC++ 6 - one has been > > added in VC++ 7, I believe. > > Thanks Randy. Which version do you use to produce the > binaries? IF 7, may be it's worth to have another ifdef to > use it?
I don't use 7 yet - although one can get it for free (at least a limited version) the libs it generates aren't necessarily compatible with VC++ 6. And since ActiveState uses VC++ 6 to compile their binaries, using 7 would be less useful in the context of making up mod_perl binaries. > > In such cases where it doesn't exist, might it be > > useful to report instead the __LINE__ and __FILE__? > > IMHO, it'll generate too much output, since the > paths/filenames would be too long, making the trace not so > useful. Or can you just show the __FILE__ w/o the path? I'll take a look at that - when I was playing around with it it seemed to just generate the file name without the path, but that might be because I was running the test program in the same directory the file was. -- best regards, randy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
