PageRenderTime 20ms CodeModel.GetById 14ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/guile/integers_runme.scm

#
Lisp | 11 lines | 6 code | 2 blank | 3 comment | 0 complexity | b333b8935113f4508dfcdd8cf8f744dc MD5 | raw file
 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")