Variadic

Determines what kind of variadic parameters function has.

Values

ValueMeaning
no

Function is not variadic.

c

Function is a _C-style variadic function, which uses core.stdc.stdarg

d

Function is a _D-style variadic function, which uses __argptr and __arguments.

typesafe

Function is a typesafe variadic function.

Return Value

enum Variadic

Examples

void func() {}
static assert(variadicFunctionStyle!func == Variadic.no);

extern(C) int printf(const char*, ...);
static assert(variadicFunctionStyle!printf == Variadic.c);

Meta