From: Stefan Metzmacher Date: Mon, 16 Apr 2007 19:46:06 +0000 (+0000) Subject: r22274: merge from samba4: X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~698 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5ca18546444e3e65491c2104cf8eeb1022bb5591;p=thirdparty%2Fsamba.git r22274: merge from samba4: - provide __LINESTR__ macro - add __STRINGSTRING() macro to really create a string of __LINE__ - fix __location__ macro metze --- diff --git a/source/lib/replace/README b/source/lib/replace/README index d63847556cc..c2de560314a 100644 --- a/source/lib/replace/README +++ b/source/lib/replace/README @@ -79,8 +79,10 @@ va_copy __FUNCTION__ __FILE__ __LINE__ +__LINESTR__ __location__ __STRING +__STRINGSTRING MIN MAX QSORT_CAST diff --git a/source/lib/replace/replace.h b/source/lib/replace/replace.h index 0d462b613d1..840b448d24b 100644 --- a/source/lib/replace/replace.h +++ b/source/lib/replace/replace.h @@ -439,8 +439,16 @@ typedef int bool; #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