PageRenderTime 25ms CodeModel.GetById 18ms app.highlight 6ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1.3.35/Examples/test-suite/guile/integers_runme.scm

#
Lisp | 11 lines | 6 code | 2 blank | 3 comment | 0 complexity | b333b8935113f4508dfcdd8cf8f744dc MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
 1;; The SWIG modules have "passive" Linkage, i.e., they don't generate
 2;; Guile modules (namespaces) but simply put all the bindings into the
 3;; current module.  That's enough for such a simple test.
 4(dynamic-call "scm_init_integers_module" (dynamic-link "./libintegers.so"))
 5
 6(define-macro (throws-exception? form)
 7  `(catch #t
 8     (lambda () ,form #f)
 9     (lambda args #t)))
10
11(load "../schemerunme/integers.scm")