mirror of
https://github.com/samba-team/samba.git
synced 2025-02-09 09:57:48 +03:00
r4687: use struct type and location for easier finding
metze (This used to be commit a88aac7a397972c52ca2fb192b58f2a172630a6e)
This commit is contained in:
parent
ffb8c82424
commit
0c440d6506
@ -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__)
|
||||
|
Loading…
x
Reference in New Issue
Block a user