compatibility/collects/mzlib/sendevent.ss
Matthew Flatt 465b675b5b doc and test repairs
svn: r8597

original commit: 1959c567431344b468d47fa873e093b5ab0787c4
2008-02-09 13:01:39 +00:00

15 lines
380 B
Scheme

#lang scheme/base
(require scheme/gui/dynamic)
(provide send-event)
(define send-event
(lambda (who class msg [data (void)] [args null])
(if (gui-available?)
((gui-dynamic-require 'send-event) who class msg data args)
(raise
(make-exn:fail:unsupported
"send-event: only supported in MrEd"
(current-continuation-marks))))))