Next: , Previous: close-foreign-library, Up: Libraries


*darwin-framework-directories*

Syntax

— Special Variable: *darwin-framework-directories*

Value type

A list, in which each element is a string, a pathname, or a simple Lisp expression.

Initial value

A list containing the following, in order: an expression corresponding to Darwin path ~/Library/Frameworks/, #P"/Library/Frameworks/", and #P"/System/Library/Frameworks/".

Description

The meaning of “simple Lisp expression” is explained in *foreign-library-directories*. In contrast to that variable, this is not a fallback search path; the default value described above is intended to be a reasonably complete search path on Darwin systems.

Examples

  CFFI> (let ((lib (load-foreign-library '(:framework "OpenGL"))))
          (foreign-library-pathname lib))
  => #P"/System/Library/Frameworks/OpenGL.framework/OpenGL"

See also

*foreign-library-directories*
define-foreign-library