Skip to content

Commit

Permalink
make internal unstable/debug require/provide unconditional
Browse files Browse the repository at this point in the history
as now in any case included in `deps`
  • Loading branch information
hasu committed Apr 9, 2016
1 parent 3f45aa8 commit 2b78e8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
5 changes: 2 additions & 3 deletions util/debug.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
#|
|#

(require "module.rkt")

(require*-if-declared unstable/debug)
(require unstable/debug)
(provide (all-from-out unstable/debug))
17 changes: 0 additions & 17 deletions util/module.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -175,23 +175,6 @@
#'(begin)
#'(require spec ...))]))

(define-syntax (when-module-declared stx)
(syntax-parse stx
[(_ mod:expr load:boolean code:expr ...+)
(if (module-declared? (syntax->datum #'mod) (syntax-e #'load))
#'(begin code ...)
#'(begin))]))

(define-syntax-rule* (require-if-declared mod ...)
(begin
(when-module-declared mod #f (require mod))
...))

(define-syntax-rule* (require*-if-declared mod ...)
(begin
(when-module-declared mod #f (require* mod))
...))

(define-syntax* (define-generics* stx)
(define-splicing-syntax-class opts
(pattern
Expand Down

0 comments on commit 2b78e8e

Please sign in to comment.