instance refvar - part-cw/lambdanative GitHub Wiki

(instance-refvar store instance name . fback)

instance-refvar returns an internal variable from a plugin instance.

Parameter Description
store Data store name
instance Plugin instance name
name Variable name to be retrieved
fback Optional: Value to be returned when variable name is not set. Otherwise will return #f

Example

Example 1: Internal function from dse plugin, where a check is performed if a fact is part of the instance's "FactList" variable.

(define (dse:check-strong-fact store instance fact)
  (member fact (instance-refvar store instance "FactList")))