summaryrefslogtreecommitdiff
path: root/src/include/utils/memutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/utils/memutils.h')
-rw-r--r--src/include/utils/memutils.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/include/utils/memutils.h b/src/include/utils/memutils.h
index bc5757681ba..d68010f9774 100644
--- a/src/include/utils/memutils.h
+++ b/src/include/utils/memutils.h
@@ -149,7 +149,7 @@ extern void MemoryContextCreate(MemoryContext node,
*/
/* aset.c */
-extern MemoryContext AllocSetContextCreateExtended(MemoryContext parent,
+extern MemoryContext AllocSetContextCreateInternal(MemoryContext parent,
const char *name,
Size minContextSize,
Size initBlockSize,
@@ -158,17 +158,16 @@ extern MemoryContext AllocSetContextCreateExtended(MemoryContext parent,
/*
* This wrapper macro exists to check for non-constant strings used as context
* names; that's no longer supported. (Use MemoryContextSetIdentifier if you
- * want to provide a variable identifier.) Note you must specify block sizes
- * with one of the abstraction macros below.
+ * want to provide a variable identifier.)
*/
#ifdef HAVE__BUILTIN_CONSTANT_P
-#define AllocSetContextCreate(parent, name, allocparams) \
+#define AllocSetContextCreate(parent, name, ...) \
(StaticAssertExpr(__builtin_constant_p(name), \
"memory context names must be constant strings"), \
- AllocSetContextCreateExtended(parent, name, allocparams))
+ AllocSetContextCreateInternal(parent, name, __VA_ARGS__))
#else
-#define AllocSetContextCreate(parent, name, allocparams) \
- AllocSetContextCreateExtended(parent, name, allocparams)
+#define AllocSetContextCreate \
+ AllocSetContextCreateInternal
#endif
/* slab.c */