dmd.builtin

Implement CTFE for intrinsic (builtin) functions.

Currently includes functions from std.math, core.math and core.bitop.

Members

Functions

eval_builtin
Expression eval_builtin(Loc loc, FuncDeclaration fd, Expressions* arguments)

Evaluate builtin function. Return result; NULL if cannot evaluate it.

isBuiltin
BUILTIN isBuiltin(FuncDeclaration fd)

Determine if function is a builtin one that we can evaluate at compile time.

Meta