Scilab: fix tests failing in 5.3.3 (conflict with Scilab function Error)

This commit is contained in:
Simon Marchetto 2013-08-21 11:11:41 +02:00
commit 67d4079e1f
2 changed files with 12 additions and 0 deletions

View file

@ -1,5 +1,11 @@
%module constructor_exception %module constructor_exception
#ifdef SWIGSCILAB
%inline %{
#undef Error
%}
#endif
%inline %{ %inline %{
class Error { class Error {
}; };

View file

@ -12,6 +12,12 @@
%warnfilter(SWIGWARN_PARSE_KEYWORD) Namespace; %warnfilter(SWIGWARN_PARSE_KEYWORD) Namespace;
#endif #endif
#ifdef SWIGSCILAB
%inline %{
#undef Error
%}
#endif
// Tests SWIG's automatic exception mechanism // Tests SWIG's automatic exception mechanism
%inline %{ %inline %{