backward compatibility, but add preferred forms WARN_PHP_* and use these ourselves. Rename Lib/php4 to Lib/php, Source/Modules/php4.cxx to Source/Modules/php.cxx. Add typemaps for const reference so Examples/test-suite/apply_signed_char.i works. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10633 626c5289-ae23-0410-ae9c-e8d60b6d4f22
26 lines
648 B
OpenEdge ABL
26 lines
648 B
OpenEdge ABL
%module(ruby_minherit="1") evil_diamond
|
|
|
|
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) foo; // Ruby, wrong class name
|
|
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) bar; // Ruby, wrong class name
|
|
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) baz; // Ruby, wrong class name
|
|
%warnfilter(SWIGWARN_RUBY_WRONG_NAME,
|
|
SWIGWARN_JAVA_MULTIPLE_INHERITANCE,
|
|
SWIGWARN_CSHARP_MULTIPLE_INHERITANCE,
|
|
SWIGWARN_PHP_MULTIPLE_INHERITANCE) spam; // Ruby, wrong class name - C# & Java, PHP multiple inheritance
|
|
|
|
%inline %{
|
|
|
|
class foo { };
|
|
|
|
class bar : public foo {
|
|
};
|
|
|
|
class baz : public foo {
|
|
};
|
|
|
|
class spam : public bar, public baz {
|
|
};
|
|
|
|
foo *test(foo *f) { return f; }
|
|
%}
|
|
|