swig/Examples/test-suite/guile_ext_test.i
Geert Janssens 7dfe4a0653 Make guile test suite default to scm api
In other words guilescm becomes guile.
Deprecated gh api tests are moved to guilegh.
2013-04-28 22:06:21 +02:00

19 lines
385 B
OpenEdge ABL

%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);
%}