goto fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8550 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8b2eddb8a6
commit
a74b00edc8
1 changed files with 9 additions and 3 deletions
|
|
@ -3,16 +3,22 @@
|
||||||
// Check typemap name matching rules for variables
|
// Check typemap name matching rules for variables
|
||||||
// Some of these are using qualified names, which is not right... the test will be adjusted as these get fixed
|
// Some of these are using qualified names, which is not right... the test will be adjusted as these get fixed
|
||||||
|
|
||||||
|
#if defined(SWIGPYTHON) || defined(SWIGRUBY)
|
||||||
|
%{
|
||||||
|
#define TYPEMAP_VARIABLES_FAIL goto fail;
|
||||||
|
%}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Scripting languages use varin/varout for variables (except non-static member variables where in/out are used ???)
|
// Scripting languages use varin/varout for variables (except non-static member variables where in/out are used ???)
|
||||||
%typemap(varin) int "this_will_not_compile_varin "
|
%typemap(varin) int "this_will_not_compile_varin "
|
||||||
%typemap(varout) int "this_will_not_compile_varout"
|
%typemap(varout) int "this_will_not_compile_varout"
|
||||||
%typemap(varin) int globul "/*int globul varin */"
|
%typemap(varin) int globul "/*int globul varin */ TYPEMAP_VARIABLES_FAIL"
|
||||||
%typemap(varout) int globul "/*int globul varout*/ $result=0;"
|
%typemap(varout) int globul "/*int globul varout*/ $result=0;"
|
||||||
%typemap(varin) int Space::nspace "/*int nspace varin */"
|
%typemap(varin) int Space::nspace "/*int nspace varin */ TYPEMAP_VARIABLES_FAIL"
|
||||||
%typemap(varout) int Space::nspace "/*int nspace varout*/ $result=0;"
|
%typemap(varout) int Space::nspace "/*int nspace varout*/ $result=0;"
|
||||||
//%typemap(varin) int member "/*int member varin */"
|
//%typemap(varin) int member "/*int member varin */"
|
||||||
//%typemap(varout) int member "/*int member varout*/ $result=0;"
|
//%typemap(varout) int member "/*int member varout*/ $result=0;"
|
||||||
%typemap(varin) int Space::Struct::smember "/*int smember varin */"
|
%typemap(varin) int Space::Struct::smember "/*int smember varin */ TYPEMAP_VARIABLES_FAIL"
|
||||||
%typemap(varout) int Space::Struct::smember "/*int smember varout*/ $result=0;"
|
%typemap(varout) int Space::Struct::smember "/*int smember varout*/ $result=0;"
|
||||||
|
|
||||||
// Statically typed languages use in/out for variables
|
// Statically typed languages use in/out for variables
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue