Add a hook that is run whenever a new module is defined.

This commit is contained in:
Neil Jerram 2002-12-28 20:14:21 +00:00
commit db85376112
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2002-12-28 Neil Jerram <neil@ossau.uklinux.net>
* boot-9.scm (module-defined-hook): New hook, run whenever a new
module is defined.
(process-define-module): Run this hook.
2002-12-18 Mikael Djurfeldt <mdj@kvast.blakulla.net>
* threads.scm: Removed bogus definition of future-ref.

View file

@ -1783,8 +1783,14 @@
(append (cadr kws) re-exports)))
(else
(unrecognized kws)))))
(run-hook module-defined-hook module)
module))
;; `module-defined-hook' is a hook that is run whenever a new module
;; is defined. Its members are called with one argument, the new
;; module.
(define module-defined-hook (make-hook 1))
;;; {Autoload}
(define (make-autoload-interface module name bindings)