in C, I can do something like:
#ifndef H_blah #define H_blah ...
#endif
how can I do something similar for files (include ... 'ed) in gambit? I have some define-types , and I only want the define-types to load once.
Thanks!
Afficher les réponses par date
On 7-Jul-09, at 10:16 PM, lowly coder wrote:
in C, I can do something like:
#ifndef H_blah #define H_blah ...
#endif
how can I do something similar for files (include ... 'ed) in gambit? I have some define-types , and I only want the define-types to load once.
Thanks!
;; File: "foo.scm"
(cond-expand
((not foo.scm) (define-type person name gender) (define-cond-expand-feature foo.scm))
(else))