Function Entry: CLAL-MODULE-EXTENSION
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: CLAL-MODULE-EXTENSION
Name
clal-module-extension
Class
clautolisp Extension Function
Syntax
(clal-module-extension kind)
Arguments and Values
kind— a string, matched case-insensitively:"compiled-app"or"native-module".
Description
Return, as a string with leading dot, the file extension
clautolisp uses for a packaged-artefact kind on the current
host, so portability layers query clautolisp instead of hard-coding
a guess. "compiled-app" yields ".lap" (the clautolisp analogue
of AutoCAD .vlx / BricsCAD .des). "native-module" yields the
host OS shared-library extension, resolved at run time
(".dll" Windows, ".dylib" macOS, ".so" elsewhere).
Return Values
An AutoLISP string, the extension including its leading dot.
Side Effects
None.
Affected By
- The running host OS (for
"native-module").
Exceptional Situations
Signals :invalid-module-kind for any kind other than
"compiled-app" or "native-module".
Examples
(clal-module-extension "compiled-app") => ".lap" (clal-module-extension "native-module") => ".so" ; on Linux
Availability
- clautolisp: documented (this entry); implemented since clautolisp 1.4.x.
- AutoCAD: NOT present.
- BricsCAD: NOT present.
Source Notes
- clautolisp-only extension; see issues/open/clautolisp-module-app-extensions.issue.