Compiler Builtins

Variables

List of builtin variables set by compiler:

Functions

sizeof

sizeof(<expr>)

Returns size of any expression or type in bytes.

alignof

alignof(<expr>) #comptime

Returns alignment of any expression or type.

typeinfo

typeinfo(<expr>) #comptime

Returns pointer to type information structure allocated on a stack.

typeof

typeof(<expr>) #comptime

Returns type of any expression.

compiler_error

compiler_error(message: string_view) #comptime

Report error in compile-time.

compiler_warning

compiler_warning(message: string_view) #comptime

Report warning in compile-time.