The OpenD Programming Language

variadicFunctionStyle

Determines what kind of variadic parameters function has.

template variadicFunctionStyle (
alias func
) if (
isCallable!func
) {
enum string varargs;
enum Variadic variadicFunctionStyle;
}

Parameters

func

function symbol or type of function, delegate, or pointer to 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