summaryrefslogtreecommitdiff
path: root/source3/lib/talloc/talloc.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-04-27 22:04:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:43 -0500
commitfdc0b87083496ae9d6d9d3d1d1a71dddaca24da2 (patch)
tree0cdfd99443f21baecd5e729673d9b71a59b304f6 /source3/lib/talloc/talloc.h
parentf3cf873c811c94bd67dcbc546cae50fcaf03a891 (diff)
downloadsamba-fdc0b87083496ae9d6d9d3d1d1a71dddaca24da2.tar.gz
samba-fdc0b87083496ae9d6d9d3d1d1a71dddaca24da2.tar.bz2
samba-fdc0b87083496ae9d6d9d3d1d1a71dddaca24da2.zip
r22541: Added talloc_size_strict macro.
Jeremy. (This used to be commit fcbfa2c99175780524d2258885410c79bbb12d6e)
Diffstat (limited to 'source3/lib/talloc/talloc.h')
-rw-r--r--source3/lib/talloc/talloc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/talloc/talloc.h b/source3/lib/talloc/talloc.h
index 357c9b5076..48bf4303c6 100644
--- a/source3/lib/talloc/talloc.h
+++ b/source3/lib/talloc/talloc.h
@@ -84,6 +84,7 @@ typedef void TALLOC_CTX;
/* useful macros for creating type checked pointers */
#define talloc(ctx, type) (type *)talloc_named_const(ctx, sizeof(type), #type)
#define talloc_size(ctx, size) talloc_named_const(ctx, size, __location__)
+#define talloc_size_strict(ctx, size) talloc_strict(ctx, size, __location__)
#define talloc_ptrtype(ctx, ptr) (_TALLOC_TYPEOF(ptr))talloc_size(ctx, sizeof(*(ptr)))
#define talloc_new(ctx) talloc_named_const(ctx, 0, "talloc_new: " __location__)