Re: [PATCH v7 11/16] trace: add 'file:line' to all trace output

2014-07-02 Thread Junio C Hamano
Karsten Blees karsten.bl...@gmail.com writes: +#else + +/* + * Macros to add file:line - see above for C-style declarations of how these + * should be used. + * + * TRACE_CONTEXT may be set to __FUNCTION__ if the compiler supports it. The + * default is __FILE__, as it is consistent with

Re: [PATCH v7 11/16] trace: add 'file:line' to all trace output

2014-07-02 Thread Junio C Hamano
Karsten Blees karsten.bl...@gmail.com writes: Also, can it be set to something like __FILE__ : __FUNCTION__ which may alleviate the alleged problem of not necessarily unique perhaps? Should work with MSVC. With GCC, however, __FUNCTION__ is a string constant supplied by the compiler, so

Re: [PATCH v7 11/16] trace: add 'file:line' to all trace output

2014-07-02 Thread Karsten Blees
Am 02.07.2014 20:57, schrieb Junio C Hamano: Karsten Blees karsten.bl...@gmail.com writes: +#else + +/* + * Macros to add file:line - see above for C-style declarations of how these + * should be used. + * + * TRACE_CONTEXT may be set to __FUNCTION__ if the compiler supports it. The + *