/trunk/Examples/test-suite/guilescm_ext_test.i

# · Swig · 19 lines · 13 code · 5 blank · 1 comment · 0 complexity · a250799a19e54c5cdbad0c16a04d2cb2 MD5 · raw file

  1. %module guilescm_ext_test
  2. /* just use the imports_a.h header... for this test we only need a class */
  3. %{
  4. #include "imports_a.h"
  5. %}
  6. %include "imports_a.h"
  7. %{
  8. SCM test_create();
  9. SCM test_is_pointer(SCM val);
  10. %}
  11. %init %{
  12. scm_c_define_gsubr("test-create", 0, 0, 0, (swig_guile_proc) test_create);
  13. scm_c_define_gsubr("test-is-pointer", 1, 0, 0, (swig_guile_proc) test_is_pointer);
  14. %}