with-events-enabled |
| ( option*) | [Macro] |
Purpose
Restore event signaling during evaluation of forms.
Package :gbbopen
Module :gbbopen-core
Arguments and values
option | No options are currently supported | |
declaration | A declare expression (not evaluated) | |
forms | An implicit | |
results | The values returned by evaluating the last form |
Returns
The values returned by evaluating the last form.
See also
signal-event
with-events-disabled
Example
Create a hyp
without signaling any events, then add
supporting-hypothesis links with events enabled:
> (with-events-disabled (let ((hyp (make-instance 'hyp :location (list x y) :classification '(:car :truck) :color ':red :belief .85 :velocity-range '(5 35)))) (with-events-enabled () (linkf (supporting-hyps-of hyp) supporting-hyps)) hyp)) #<hyp 419 (1835 4791) 0.85 [5..35]> >
The GBBopen Project
with-events-enabled |