Package: gobject

Function g-value-holds

Lambda List

g-value-holds (value gtype)

Arguments

value -- a g-value instance
gtype -- a g-type value

Return Value

True if value holds the gtype.

Details

Checks if value holds or contains a value of gtype.

Example

(setq value
      (with-foreign-object (value 'g-value)
        (g-value-init value "gint")))
=> #.(SB-SYS:INT-SAP #XB7910FE8)
(g-value-holds value "gint") => T
(g-value-holds value "gboolean") => NIL    
 

See also

2021-4-8