Added test for %import
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5537 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
55c4bf307f
commit
121f9b5740
7 changed files with 40 additions and 6 deletions
|
|
@ -1,5 +1,9 @@
|
|||
#ifndef __subdir2_hello_i__
|
||||
#define __subdir2_hello_i__
|
||||
#ifndef subdir2_hello_i_
|
||||
#define subdir2_hello_i_
|
||||
|
||||
%{
|
||||
typedef char * TypedefString;
|
||||
%}
|
||||
|
||||
|
||||
%inline %{
|
||||
|
|
@ -8,7 +12,12 @@
|
|||
{
|
||||
};
|
||||
|
||||
TypedefString importtest2(TypedefString str) {
|
||||
strcpy(str, "white");
|
||||
return str;
|
||||
}
|
||||
|
||||
%}
|
||||
|
||||
|
||||
#endif //__subdir2_hello_i__
|
||||
#endif //subdir2_hello_i_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue