On 22/03/2011 11:46, Тихомиров Валентин wrote:
> The convenient tracing construction
> #define LOG(LogTypeString,format,...) printf("%s[" __FUNCTION__ "]
> "format, LogTypeString, __VA_ARGS__)
> fails with error: expected ')' before '__FUNCTION__'
> Is it ok?

It's not a macro; it just looks like one. The preprocessor has no 
knowledge of what function it's in. It's a non-standard variable name, 
so use it like printf("%s", __FUNCTION__). Also look up '__function__' 
on google.

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to