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 = ../../..
|
||||
SWIGEXE = $(TOP)/../swig
|
||||
SWIG_LIB_DIR = $(TOP)/../$(TOP_BUILDDIR_TO_TOP_SRCDIR)Lib
|
||||
SRCS = robin.c
|
||||
TARGET = robin
|
||||
INTERFACE = robin.i
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
const char *run(void) {
|
||||
return "AWAY!";
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
%module robin
|
||||
|
||||
%{
|
||||
extern const char *run(void);
|
||||
%inline %{
|
||||
const char *run(void) {
|
||||
return "AWAY!";
|
||||
}
|
||||
%}
|
||||
|
||||
const char *run(void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue