Next Previous Up Top Contents Index

11 The LINK-LOAD Package

foreign-symbol-address

Function

Package

link-load

Syntax

foreign-symbol-address name &key (errorp t) (functionp t) => result

Arguments

name

The name of a foreign symbol.

errorp

A boolean.

functionp

A boolean.

Values

result

The address of name ornil.

Description

Theforeign-symbol-address function is used to find out whether a foreign symbol is defined, by looking for it in the foreign-symbol table. If its associated object code has been loaded into the image, its address is returned. Otherwise nil is returned, unless errorp isnil.
The errorp keyword defines the behavior of the function when a symbol has not been defined. If it is non-nil (which is the default value), then an error will be signalled. If it isnil, no error will be reported, and the function will returnnil.
The functionp keyword is used to specify the kind of symbol sought. If it ist,foreign-symbol-address will assume that name is the name of a function. If it isnil it will assume that name is the name of a variable. The default value ist.
Example

(foreign-symbol-address 'chmod)

See also

get-foreign-symbol

LispWorks Reference Manual - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker