Package: gio

Macro gio:with-resource

Lambda List

gio:with-resource ((resource path) &body body)

Syntax

(g:with-resource (resource path) body) => result

Arguments

resource -- a g:resource instance to create and register
path -- a pathname or namestring with the path of a file to load
body -- a body that uses the binding resource

Details

The g:with-resource macro allocates a new g:resource instance, loads the resource from a file, register the resource with the process-global set of resources and executes the body that uses the resources. After execution of the body the resource is unregistered from the process-global set of resources.
 

See also

2024-5-12