use %inline for test
This commit is contained in:
parent
10d71ca01a
commit
5ceef0a813
3 changed files with 4 additions and 8 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
const char *run(void) {
|
|
||||||
return "AWAY!";
|
|
||||||
}
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
%module robin
|
%module robin
|
||||||
|
|
||||||
%{
|
%inline %{
|
||||||
extern const char *run(void);
|
const char *run(void) {
|
||||||
|
return "AWAY!";
|
||||||
|
}
|
||||||
%}
|
%}
|
||||||
|
|
||||||
const char *run(void);
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue