Package: glib
Macro glib:with-variant
Lambda Listglib:with-variant ((var vclass value) &body body) SyntaxArgumentsDetails The g:with-variant macro allocates a new g:variant instance,
initializes it with the given value and executes the body that uses var.
This macro creates variants with a full reference using the g:variant-ref-sink function. After execution of the body the g:variant-unref function is called on var. This clears the memory used by the variant. Notes | See also |
2025-05-26