summaryrefslogtreecommitdiff
path: root/Examples/test-suite/guile_ext_test.i
blob: 170695f6c61b7cb15b5e320444792e0631cdc8b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%module guile_ext_test

/* just use the imports_a.h header... for this test we only need a class */
%{
#include "imports_a.h"
%}

%include "imports_a.h"

%{
SCM test_create();
SCM test_is_pointer(SCM val);
%}

%init %{
  scm_c_define_gsubr("test-create", 0, 0, 0, (swig_guile_proc) test_create);
  scm_c_define_gsubr("test-is-pointer", 1, 0, 0, (swig_guile_proc) test_is_pointer);
%}