aboutsummaryrefslogtreecommitdiffstats
path: root/doc/typesystemvariables.rst
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-11-22 13:18:43 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-11-23 11:48:03 -0300
commitc48f9163b42c20c91c33183a1835e0b356f104dc (patch)
tree47ca47283fbafc3bde0050815c6647d0d9e91de4 /doc/typesystemvariables.rst
parente85fcb77b2f1c9db7fbb3008d073609bf710190a (diff)
Added the method injectedCodeCallsPythonOverride(func) to
ShibokenGenerator, it returns true if a code injection on a virtual method override (a "native" inject-code) does a call to the Python override. Added the %PYTHON_METHOD_OVERRIDE type system variable, it is replaced by the name of the pointer to a Python method that represents an override to a C++ virtual method. A code injection in the "native/end" position for a method modification is now put before the dereferencing of the variables used in the Python call (the method object and the Python argument tuple). If a call to the Python override method is detected on code injections of the "native" class from method modifications, the generator doesn't write the same call again. All documentation was updated with the changes.
Diffstat (limited to 'doc/typesystemvariables.rst')
-rw-r--r--doc/typesystemvariables.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/typesystemvariables.rst b/doc/typesystemvariables.rst
index dbfc29350..9966cfc55 100644
--- a/doc/typesystemvariables.rst
+++ b/doc/typesystemvariables.rst
@@ -206,6 +206,15 @@ Variables
C++ parent's one.
+.. _python_method_override:
+
+**%PYTHON_METHOD_OVERRIDE**
+
+ This variable is used only on :ref:`native method code injections
+ <codeinjecting_method_native>`, i.e. on the binding overrides for C++ virtual
+ methods. It is replaced by a pointer to the Python method override.
+
+
.. _pythontypeobject:
**%PYTHONTYPEOBJECT**