Author: metze Date: 2007-04-16 19:45:35 +0000 (Mon, 16 Apr 2007) New Revision: 22273
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22273 Log: - provide __LINESTR__ macro - add __STRINGSTRING() macro to really create a string of __LINE__ - fix __location__ macro metze Modified: branches/SAMBA_4_0/source/lib/replace/README branches/SAMBA_4_0/source/lib/replace/replace.h Changeset: Modified: branches/SAMBA_4_0/source/lib/replace/README =================================================================== --- branches/SAMBA_4_0/source/lib/replace/README 2007-04-16 19:23:17 UTC (rev 22272) +++ branches/SAMBA_4_0/source/lib/replace/README 2007-04-16 19:45:35 UTC (rev 22273) @@ -79,8 +79,10 @@ __FUNCTION__ __FILE__ __LINE__ +__LINESTR__ __location__ __STRING +__STRINGSTRING MIN MAX QSORT_CAST Modified: branches/SAMBA_4_0/source/lib/replace/replace.h =================================================================== --- branches/SAMBA_4_0/source/lib/replace/replace.h 2007-04-16 19:23:17 UTC (rev 22272) +++ branches/SAMBA_4_0/source/lib/replace/replace.h 2007-04-16 19:45:35 UTC (rev 22273) @@ -439,8 +439,16 @@ #define __STRING(x) #x #endif +#ifndef _STRINGSTRING +#define __STRINGSTRING(x) __STRING(x) +#endif + +#ifndef __LINESTR__ +#define __LINESTR__ __STRINGSTRING(__LINE__) +#endif + #ifndef __location__ -#define __location__ __FILE__ ":" __STRING(__LINE__) +#define __location__ __FILE__ ":" __LINESTR__ #endif #if MMAP_BLACKLIST
