Next: , Previous: , Up: mpg-bpr   [Contents][Index]


11.3.246 unload_foreign_resource/1   hookable

Synopsis

unload_foreign_resource(:Resource)

Unload the foreign resource Resource from Prolog. Relies on the hook predicates foreign_resource/2 and foreign/[2,3].

Arguments

:Resource

file_spec, must be ground

The foreign resource to be unloaded. The file extension can be omitted.

Exceptions

instantiation_error

Resource not ground.

type_error

Resource not an atom.

existence_error

Resource does not exist as a foreign resource.

See Also

load_foreign_resource/1, foreign_resource/2, foreign/[2,3], Foreign Resources, Calling C from Prolog.


Send feedback on this subject.