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

Lisp Bindings

Source: lib/lisp-bindings.x

Native functions a Lisp session can call.

Runtime-internal callables

These callables connect runtime translation units. They are documented for source readers but are not supported as user API.

FunctionSummary
x2c_lisp_exchangeExchanges the borrowed Lisp activation at an execution boundary.

x2c_lisp_exchange

Lisp x2c_lisp_exchange(Lisp lisp)

Exchanges the borrowed Lisp activation at an execution boundary.

Source: lib/lisp-bindings.x

Design notes

These macros bind a native function into a runtime Lisp session under a Lisp name, one at a time or as a named group. The function stays an ordinary native function: native code calls it directly, and the session calls it through a fresh Func that carries its signature. lisp/lisp.x includes this file, so every unit sees the macros.