William S Fulton
220247c130
Test c++17 nested namespaces and %nspace
2018-05-14 21:03:31 +01:00
William S Fulton
5c39dcfb28
Add c++17 nested namespaces runtime test for C#
2018-05-14 21:03:31 +01:00
William S Fulton
c8f5f3a6d1
Add c++17 nested namespaces runtime test for Python
2018-05-14 21:03:31 +01:00
William S Fulton
348efc22ba
Add support for c++17 nested namespaces
...
For example:
namespace A::B { ... }
which is the equivalent to C++98 namespaces:
namespace A { namespace B { ... } }
2018-05-14 21:02:10 +01:00
Karl Wette
23e6f13292
Update CHANGES.current
2018-05-12 22:31:31 +10:00
Karl Wette
ebd0b52b3e
.travis.yml: test against Octave 4.4
2018-05-12 22:25:07 +10:00
Karl Wette
a2ab3d7b20
Examples/test-suite/register_par.i: rename 'tree' to 'swig_tree'
...
- 'tree' is a declared symbol in Octave >= 4.4 headers
2018-05-12 22:25:07 +10:00
Karl Wette
64ad3f0ca8
Examples/octave/module_load/runme.m: update 'exist()' statements for Octave >= 4.4
2018-05-12 22:25:07 +10:00
Karl Wette
af97a312d4
Examples/octave/module_load/runme.m: do not use duplicate function names
2018-05-12 22:25:07 +10:00
Karl Wette
a169eef3c0
Examples/Makefile.in: unset OCTAVE_PATH when running Octave for tests
2018-05-12 22:25:07 +10:00
Karl Wette
6586616e23
Lib/octave: fix getting/setting global variables for Octave >= 4.4
2018-05-12 22:25:07 +10:00
Karl Wette
d0b1105f30
Lib/octave: use new class for function member dereference with Octave >= 4.4
2018-05-12 22:25:07 +10:00
Karl Wette
94e8853e61
Lib/octave: fix operator installation for Octave >= 4.4
2018-05-12 22:25:07 +10:00
Karl Wette
84aab22f66
Lib/Octave: in Octave >= 4.4, assign reference to base class in subclass
...
- See Examples/octave/callback/runme.m: a.run() calls Octave callback,
but due to changes in behaviour to subsref() a.Callback.run() can no
longer be used to call C callback unless a.Callback actually exists;
subsrefs() just gets the "Callback" call whereas prior to Octave 4.4
it would get both the "Callback" and "run" calls. So now a.Callback is
set to the original base class (with own=0) so that it can be accessed
2018-05-12 22:25:07 +10:00
Karl Wette
ce67bce72e
Lib/octave: fix call to mlock() for Octave >= 4.4
2018-05-12 22:25:07 +10:00
Karl Wette
df92ad6ebc
Lib/octave: fix call to octave::call_stack::current() for Octave >= 4.4
2018-05-12 22:25:07 +10:00
Karl Wette
931656bcbe
Lib/octave: 'octave_exit' not longer exists in Octave >= 4.4
...
- Instead must register atexit() function, since Octave still
cannot clean up its memory usage on exit with SWIG modules
2018-05-12 22:25:07 +10:00
Karl Wette
04357dca21
Lib/octave: replace is_bool_type() with islogical() for Octave >= 4.4
2018-05-12 22:25:07 +10:00
Karl Wette
6f0561eb57
Lib/octave: replace is_numeric_type() with isnumeric() for Octave >= 4.4
2018-05-12 22:25:07 +10:00
Karl Wette
358345db9e
Lib/octave: replace is_cell() with iscell() for Octave >= 4.4
2018-05-12 22:25:07 +10:00
Karl Wette
a46909a414
Lib/octave: call octave::feval() instead of feval() for Octave >= 4.4
2018-05-12 22:25:07 +10:00
Karl Wette
e8e507bf0b
Lib/octave: fix function name passed to unwind_protect::begin_frame()
2018-05-12 22:25:07 +10:00
William S Fulton
ee17f8d04f
C#, D, Java methodmodifiers on destructors
...
Add support so that the %csmethodmodifiers, %dmethodmodifiers,
%javamethodmodifiers can modify the method modifiers for the destructor wrappers
in the proxy class: dispose, Dispose, delete. With this feature, it is now possible
to make a C# proxy class sealed, eg when wrapping a class X, the virtual method modifiers
can be removed using:
%typemap(csclassmodifiers) X "public sealed class"
%csmethodmodifiers X::~X "public /*virtual*/";
2018-05-11 18:09:51 +01:00
William S Fulton
1f7689fa8f
Javascript assert.h - move to header section
...
Fixes compile problem due to throw macro skullduggery in the director_throws testcase
2018-05-06 23:10:33 +01:00
William S Fulton
0d5719684f
Appveyor cl compiler warning fixes during configure
2018-05-06 10:37:07 +01:00
William S Fulton
6551d0fead
Java vector wrappers cast correction
...
64 bit windows, fixes:
warning C4267: 'initializing': conversion from 'size_t' to 'jint'
2018-05-06 09:46:37 +01:00
William S Fulton
8555973a48
test-suite fixes (Java directors) for compilers that don't support varargs
2018-05-06 09:46:37 +01:00
William S Fulton
bea708c796
Go - use director.swg like other languages
...
Changes the location of the director code wrt to the generated _wrap.h
file to fix throw macro skullduggery in the director_throws testcase
(see previous commit).
2018-05-06 09:46:37 +01:00
William S Fulton
50cb18087d
test-suite fixes (2) for compilers that don't support varargs
...
Split director_exception testcase into two so that testing throw(),
with no arguments, that is nothrows, can be tested separately to throw()
taking arguments. [The throw keyword needs to be removed for C++
compilation in C++11 and later when it was deprecated.]
2018-05-06 09:46:37 +01:00
William S Fulton
9fb996b83f
Consistent spacing in generated exception specifications
2018-05-06 09:46:37 +01:00
William S Fulton
196a965067
test-suite fixes for compilers that don't support vararg macros
...
Split TESTCASE_THROW into multiple macros taking different number of arguments.
Fixes Visual Studio compiler errors.
2018-05-06 09:46:37 +01:00
William S Fulton
1c46662c39
Enhance Travis testing to use gcc 8 and test C++17 and C17
2018-05-05 07:48:24 +01:00
William S Fulton
3e4b7269c0
Enhance SWIG_isfinite for older standards: C++03/C++98/C89
...
Fixes testcase overload_numeric with -std=c++98 (clang and gcc 6 and later)
Issue #1239
2018-05-04 20:02:13 +01:00
William S Fulton
7ecf6a71b0
test-suite support for gcc-8 targeting C++11 and C++14
...
Some code in this test case is actually only supported in c++17...
cpp11_lambda_functions_wrap.cxx:275:87: error: the type ‘const<lambda(int, int)>’ of ‘constexpr’ variable ‘lambda18’ is not literal
CONSTEXPR auto lambda18 = [] (int x, int y) mutable TESTCASE_THROW(int) { return x+y; };
^
cpp11_lambda_functions_wrap.cxx:275:28: note: ‘<lambda(int, int)>’ is not literal because:
CONSTEXPR auto lambda18 = [] (int x, int y) mutable TESTCASE_THROW(int) { return x+y; };
^
cc1plus: note: ‘<lambda(int, int)>’ is a closure type, which is only literal in C++17 and later
cpp11_lambda_functions_wrap.cxx:278:89: error: the type ‘const Space1::<lambda(int, int)>’ of ‘constexpr’ variable ‘Space1::lambda19’ is not literal
CONSTEXPR auto lambda19 = [] (int x, int y) mutable TESTCASE_THROW(int) { return x+y; };
2018-05-04 20:02:13 +01:00
William S Fulton
35c5a3a42a
Scilab portability fixes - remove use of strdup
2018-05-04 20:02:13 +01:00
William S Fulton
179b41067d
Scilab array overbounds fix handling char type exceptions
2018-05-04 20:02:13 +01:00
William S Fulton
6cc6d21bd2
test-suite fix for c++17 and throw macro
2018-05-04 20:02:13 +01:00
William S Fulton
e7d626d1b4
Remove use of 'register' in C source
...
No noticable performance change using gcc x86-64 in Java and Python
test-suites.
2018-05-04 20:02:13 +01:00
William S Fulton
e6b3a88f8a
test-suite support for C++17: switch testing of the deprecated C++17 'register' keyword from C++ to C
2018-05-04 20:02:13 +01:00
William S Fulton
c9a10eb726
Examples update to support C++17: exception specification throw removal
2018-05-04 20:02:13 +01:00
William S Fulton
4e0b2f1402
Cosmetic syntax tweak using throw in Octave directors
2018-05-04 20:02:13 +01:00
William S Fulton
63f7315c8a
test-suite support for C++17 (Java): exception specification throw removal
2018-05-04 20:02:13 +01:00
William S Fulton
35b792daed
test-suite support for C++17: exception specification throw removal
2018-05-04 20:02:13 +01:00
William S Fulton
ebd6558a30
__cplusplus macro usage tweak
2018-05-04 20:02:13 +01:00
William S Fulton
44f599bb6f
Improve detection of Python's 2to3 tool
...
Distributions seem to install it as 2to3-X.Y where the interpreter is
installed as pythonX.Y
2018-05-04 20:02:13 +01:00
William S Fulton
7774cdf71f
Correct C shared library creation when specifing CC to configure
2018-05-04 20:02:13 +01:00
Jacob Gillespie
6c78195d75
Merge branch 'master' into js-v8-52-tests
2018-05-01 21:26:59 -05:00
Jacob Gillespie
0ba153c892
Test NodeJS 4, 6, 8, and 10
2018-05-01 21:22:20 -05:00
William S Fulton
8b4d0d7921
Merge pull request #1246 from bje-/paren-fix
...
Remove superfluous parens in generated Python scripts.
2018-04-28 09:58:50 +01:00
Ben Elliston
6fb6636ce2
Remove superfluous parens in generated Python scripts.
2018-04-28 12:28:11 +10:00