Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Provisional API: This reference documents current compiler behavior. Compatibility is not yet promised.

src/builtins.x

The built-in macros’ compile-time algorithms.

Functions

FunctionSummary
Compiler.builtin_targetsReturns each built-in algorithm by the name compile-time code calls it with.

Compiler

Compiler.builtin_targets

Map Compiler.builtin_targets(void)

Returns each built-in algorithm by the name compile-time code calls it with.

Source: src/builtins.x:924

Design notes

The built-in macros expand through these functions, which run as native code inside the compiler. Compiler.builtin_targets binds each into the shared session under the name its callers use, such as etc/builtin-macros.x and etc/lisp-bindings.x.