File: require-extension

package info (click to toggle)
scheme9 2025.08.12-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,080 kB
  • sloc: lisp: 16,752; ansic: 11,869; sh: 806; makefile: 237; sed: 6
file content (24 lines) | stat: -rw-r--r-- 836 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
S9fES  (require-extension <extension> ...)  ==>  unspecific

When the given <extension>s have been compiled into the interpreter
expanding this form, the form evaluates to an unspecific value. When
at least one of the given <extension>s is absent, an error is
signalled.

Each extension may be either a symbol or a list of the form

(or <name> ...)

where each <name> names an extension. For the REQUIRE-EXTENSIONS form
to succeed, it is sufficient if one of the extensions named in (or ...)
is present. For example:

(require-extension curses)

requires the CURSES extension to be compiled-in, and

(require-extension (or sys-unix sys-plan9))

requires either the SYS-UNIX or the SYS-PLAN9 extension to be present.
(In the unlikely case that both the SYS-UNIX and SYS-PLAN9 extensions
would be detected, the form would still succeed).