use %inline for test

This commit is contained in:
Mike Romberg 2016-04-08 08:27:57 -06:00 • committed by William S Fulton
commit 5ceef0a813
3 changed files with 4 additions and 8 deletions

View file

@ -1,7 +1,6 @@
TOP = ../../.. TOP = ../../..
SWIGEXE = $(TOP)/../swig SWIGEXE = $(TOP)/../swig
SWIG_LIB_DIR = $(TOP)/../$(TOP_BUILDDIR_TO_TOP_SRCDIR)Lib SWIG_LIB_DIR = $(TOP)/../$(TOP_BUILDDIR_TO_TOP_SRCDIR)Lib
SRCS = robin.c
TARGET = robin TARGET = robin
INTERFACE = robin.i INTERFACE = robin.i

View file

@ -1,3 +0,0 @@
const char *run(void) {
return "AWAY!";
}

View file

@ -1,7 +1,7 @@
%module robin %module robin
%{ %inline %{
extern const char *run(void); const char *run(void) {
return "AWAY!";
}
%} %}
const char *run(void);