r4687: use struct type and location for easier finding
authorStefan Metzmacher <metze@samba.org>
Tue, 11 Jan 2005 15:20:55 +0000 (15:20 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:08:43 +0000 (13:08 -0500)
metze
(This used to be commit a88aac7a397972c52ca2fb192b58f2a172630a6e)

source4/lib/talloc/talloc.h

index 5ac588887643021130d33a66bda6aa499fcbcd80..cf03ce59521d729eba67d36ebb8643b8e42105f2 100644 (file)
@@ -37,7 +37,7 @@ typedef void TALLOC_CTX;
 #endif
 
 /* useful macros for creating type checked pointers */
-#define talloc(ctx, type) (type *)talloc_named_const(ctx, sizeof(type), #type)
+#define talloc(ctx, type) (type *)talloc_named_const(ctx, sizeof(type), #type ": " __location__)
 #define talloc_size(ctx, size) talloc_named_const(ctx, size, __location__)
 
 #define talloc_new(ctx) talloc_named_const(ctx, 0, "talloc_new: " __location__)