PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

evc4 and its documentation errors's

hi all,

i work with evc4 since 1 month and it seems to me that the documentation provided by evc contains some mistakes.

by exemple, the predefined macro __FUNCTION__ (specified in the doc) doesn't exist.

does anybody knows where i can get a better documentation?

thanks.
Vichtak
joshbu [MSFT] · 28 Jun 2005, 17:41 UTC
Could you post how you are using __FUNCTION__? We've used desktop compiler front ends for quite a while now, so it should certainly exist...
i'm using it like this:

printf("%s\n", __FUNCTION__);

and while compiling i get that:

Compiling...
debug.cpp
C:\Documents and Settings\ex-plh\Mes documents\Emb Visual C++ Projects\org LiveMedia Library\debug.cpp(29) : error C2065: '__FUNCTION__' : undeclared identifier
joshbu [MSFT] · 29 Jun 2005, 20:17 UTC
This seems to be a limitation of the EVC compiler. I just tried it with Whidbey, and it looks good, but, as you point out, it's not there in EVC.

http://tinyurl.com/8w2dt

Russ is our compiler guy, so he'd know best.

It does look like __FILE__ and __LINE__ work, which isn't as good as __FUNCTION__ but they can be used for some kind of tracing.
thanks for the confirmation.