PageRenderTime 42ms CodeModel.GetById 17ms RepoModel.GetById 0ms 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
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. (define-macro (throws-exception? form)
  6. `(catch #t
  7. (lambda () ,form #f)
  8. (lambda args #t)))
  9. (load "../schemerunme/integers.scm")