Gustavo Carneiro
06f2eda78c
assert_ -> assertTrue
2014-02-02 18:58:07 +00:00
Gustavo Carneiro
e01398d91c
Fix the gccxml-based unit tests
2014-02-02 18:55:53 +00:00
Gustavo Carneiro
3c2726d367
merge from the py3k branch
2014-02-02 18:00:35 +00:00
Gustavo Carneiro
0a1f9089b5
Make the source also python 2.6 compatible, in addition to python 3.x
2013-10-06 16:08:38 +01:00
Gustavo Carneiro
41f96e1d2d
Make sure the unit tests run on either python 2 or 3, without needing 3to2
2013-08-04 22:20:36 +01:00
Gustavo Carneiro
5aae13b55a
make it work on python 3 (except that sq_slice and sq_ass_slice are gone in Python 3)
2013-07-31 22:40:27 +01:00
Gustavo Carneiro
6ab20e6d03
Merge from trunk
2013-07-27 19:45:53 +01:00
Gustavo Carneiro
f8943e6719
Make it work on Python 3, except gccxml, which has not been tested
2013-07-27 17:18:06 +01:00
Gustavo Carneiro
f4b50afda6
Fix a compilation warning in the unit tests
2013-02-21 18:56:30 +00:00
Mike Owen
782aced20b
Adding a unit test of cppclass.add_custom_instance_attribute. I think
...
this completes tests of all our new features for pybindgen in this
branch.
2012-12-11 22:42:19 -08:00
Mike Owen
d937627c70
1. Putting in logic to only build the boost::shared_ptr test when
...
the shared_ptr header is available.
2. The type narrowing using cxxabi in cppclass.py isn't correct with
clang, so adding a #if checks to exclude it in that case.
2012-12-11 22:10:45 -08:00
Mike Owen
2560c98f5e
1. Debugged some of our new sequence methods and expanded on the error reporting a bit.
...
2. Commenting out the automatic tp_hash method for now since it's not quite right. We have to
go back and see why Riyaz originally reinstated that thing.
3. Expanded the pybindgen unit tests of "VectorLike" to include all the new container slots.
2012-12-10 16:39:14 -08:00
Gustavo J. A. M. Carneiro
a17ce14a6e
More boost::shared_ptr tests/fixes, seems stable now.
2012-08-24 19:11:24 +01:00
Gustavo J. A. M. Carneiro
33f9f727fe
Initial support for boost::shared_ptr-wrapped classes
2012-08-23 19:00:57 +01:00
Gustavo J. A. M. Carneiro
d5c2ec49cb
Fix PYTHONPATH for unit tests
2012-08-20 18:05:10 +01:00
Gustavo J. A. M. Carneiro
c3f5dd8aae
Trying, in vain, to reproduce bug #798383...
2012-05-04 18:31:31 +01:00
Gustavo J. A. M. Carneiro
003d69124e
Don't unit-test Glib:: types, as it requires special headers
2012-05-04 16:18:01 +01:00
Gustavo J. A. M. Carneiro
2ae14a0852
Generation bug: local variables conflict with wrapper parameters
2012-03-18 22:28:23 +00:00
Gustavo J. A. M. Carneiro
07146e80ae
Upgrade to WAF 1.6.11; building examples temporarily broken...
2012-03-18 18:50:39 +00:00
Gustavo J. A. M. Carneiro
0b7f23150b
returning const* doesn't work with 'reference_existing_object'
2011-06-22 14:30:27 +01:00
Gustavo J. A. M. Carneiro
b7094b55fe
Add new destructor_visibility CppClass option
2011-06-16 11:49:20 +01:00
Gustavo J. A. M. Carneiro
3ac1a30e35
Bug #780945 : Exception translation generates invalid code if return value is wrapped (i.e. not primitive)
2011-05-11 16:14:39 +01:00
Gustavo J. A. M. Carneiro
7ba02242f8
Add support for 'throw' annotations in functions and methods
2011-05-10 19:10:18 +01:00
Gustavo J. A. M. Carneiro
3d5389f88c
Fix testing of CppClassPtrParameter in reverse wrappers.
2011-01-27 18:18:05 +00:00
Gustavo J. A. M. Carneiro
212ab88379
Fix a CStringReturn bug
2011-01-21 11:55:01 +00:00
Gustavo J. A. M. Carneiro
d5e595d270
Add API to allow importing classes and enumerations from external modules (import_from_module parameter)
2010-11-05 23:00:10 +00:00
Gustavo J. A. M. Carneiro
449883ba46
Fix multiple-inheritance bug
2010-04-16 12:56:47 +01:00
Gustavo J. A. M. Carneiro
7e44db96fd
Fix some MSVC warnings
2010-02-16 18:54:51 +00:00
Gustavo J. A. M. Carneiro
40e90b93c2
Check for stdint.h; if not found use Paul Hsieh's pstdint.h.
2010-02-16 15:40:49 +00:00
Gustavo J. A. M. Carneiro
39db96d5b2
Add missing 'throw' modifiers as needed to method signatures in helper classes
2010-02-14 11:57:12 +00:00
Gustavo J. A. M. Carneiro
56475d27f8
Experimental support for multiple-inheritance. GccXml scanning part not done yet.
2010-01-30 22:01:22 +00:00
Gustavo J. A. M. Carneiro
121c1898d0
Add annotation support for instance attributes, and test pointer instance attribute.
2010-01-20 18:15:50 +00:00
Gustavo J. A. M. Carneiro
225436e711
Wrap enum pointer params
2010-01-19 11:00:21 +00:00
Gustavo J. A. M. Carneiro
cdbc237f3a
Wrap non-virtual protected methods as well
2010-01-17 18:01:42 +00:00
Gustavo J. A. M. Carneiro
a6287ccc4b
Align virtual method handling code with other tools: to implement virtual method foo, now the user defines a method foo in Python, not _foo. Option pybindgen.settings.deprecated_virtuals added for backward compatibility.
2009-12-27 23:24:37 +00:00
Gustavo J. A. M. Carneiro
fdf3481ef3
Add return_internal_reference option support, similar to boost::python.
2009-12-02 15:02:38 +00:00
Gustavo J. A. M. Carneiro
bd0e3c329f
Implement reference_existing_object also for Class& return values
2009-12-01 15:12:59 +00:00
Gustavo J. A. M. Carneiro
b1c86c27d9
fix memleak in test code
2009-11-21 22:11:37 +00:00
Gustavo J. A. M. Carneiro
2c6532cd65
Now the 'custodian' option only manages the lifecycle of the python wrapper, not the contained C++ object. To manage the C++ object, now 'transfer_ownership', 'caller_owns_return', or the new 'reference_existing_object', must be given in addition to 'custodian'.
2009-11-21 21:49:47 +00:00
Gustavo J. A. M. Carneiro
a9c4ffce9f
test a bit more the custodian code
2009-11-15 16:50:14 +00:00
Gustavo J. A. M. Carneiro
3bd577d87d
Lots of custodian=xxx bug fixes
2009-11-03 18:30:18 +00:00
Gustavo J. A. M. Carneiro
9864c52786
Don't postpone scanning class due to implicit target not registered if the target is not a user class.
2009-10-25 15:57:51 +00:00
Gustavo J. A. M. Carneiro
8bec9ac902
Bug 450255: Invalid 'cannot generate a constructor' case
2009-10-21 18:30:48 +01:00
Gustavo J. A. M. Carneiro
3b51acd664
Add test case for bug #436154
2009-09-30 18:34:58 +01:00
Gustavo J. A. M. Carneiro
9b0d3a46ab
Add code to allow translation of the exception message into python
2009-08-27 14:28:35 +01:00
Gustavo J. A. M. Carneiro
1294522f2a
Add foreign_cpp_namespace option to CppException, and tests using std::exception.
2009-08-27 12:28:00 +01:00
Gustavo J. A. M. Carneiro
3fa347aad4
gccxml-scanning for exceptions and throw modifiers, semi-automatic, with help of annotation
2009-08-24 14:46:05 +01:00
Gustavo J. A. M. Carneiro
d0f8984663
catch exceptions in constructors
2009-08-23 19:27:23 +01:00
Gustavo J. A. M. Carneiro
262c88f846
catch exceptions in method calls too
2009-08-23 19:16:42 +01:00
Gustavo J. A. M. Carneiro
1fcb8501e8
Add API to basically wrap C++ exceptions and catch them in free function calls.
2009-08-23 19:05:43 +01:00