Eric Noulard wrote:
> 2007/4/2, Manfred Rebentisch <[EMAIL PROTECTED]>:
> 
> May be.
> 
> May be you can use predefined
>  C99  __func__ or GCC specific __FUNCTION__ macros
> and then you should be able to use:
> 
> printf("%s:%s error msg x\n", basename(__FILE__), __FUNCTION__);
> 
> nevertheless my man page says that basename could modify
> its argument which may gives you unexpected result in this case...

@google:
#define FILE ((strrchr(__FILE__, '/') ? : __FILE__- 1) + 1)

Filipe Sousa



Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to