Add a hook that is run whenever a new module is defined.
This commit is contained in:
parent
6054d8052e
commit
db85376112
2 changed files with 12 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue