compatibility/collects/mzlib/sendevent.rkt
Ryan Culpepper e3d2327c7c removed useless requires
original commit: c7f86d276c68b12e87dc46cef4a8e1b95538f88d
2011-09-27 19:28:44 -06:00

15 lines
383 B
Racket

#lang racket/base
(require racket/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 GRacket"
(current-continuation-marks))))))