summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-08-24 17:24:33 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-08-25 10:38:56 -0300
commitff729cca1a0398d847d5b0363e61be98a0c099c0 (patch)
treec1c07c8ed6ddb823c20748908525e18921a53a17 /doc
parent2926ebb67df6ebe19cdf5b4961386f425a187f21 (diff)
downloadshiboken-ff729cca1a0398d847d5b0363e61be98a0c099c0.tar.gz
shiboken-ff729cca1a0398d847d5b0363e61be98a0c099c0.tar.xz
shiboken-ff729cca1a0398d847d5b0363e61be98a0c099c0.zip
Doc for new inject code rule.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/codeinjectionsemantics.rst8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/codeinjectionsemantics.rst b/doc/codeinjectionsemantics.rst
index aaa965fe..872662ad 100644
--- a/doc/codeinjectionsemantics.rst
+++ b/doc/codeinjectionsemantics.rst
@@ -65,7 +65,7 @@ The following table describes the semantics of ``inject-code`` tag as used on
| | | |initializer function (``init_CLASS(PyObject *module)``). The |
| | | |code here will be executed after all the wrapped class |
| | | |components have been initialized. |
- +---------------+------+---------+--------------------------------------------------------------+
+ +---------------+------+---------+--------------------------------------------------------------+
|modify-function|native|beginning|Code here is put on the virtual method override of a C++ |
| | | |wrapper class (the one responsible for passing C++ calls to a |
| | | |Python override, if there is any), right after the C++ |
@@ -84,6 +84,12 @@ The following table describes the semantics of ``inject-code`` tag as used on
| | | |(``PyCLASS_METHOD(...)``), right after the C++ method call, |
| | | |but still inside the scope created by the overload for each |
| | | |signature. |
+ | +------+---------+--------------------------------------------------------------+
+ | |shell |beginning|Used only for virtual functions. The code is injected when the|
+ | | | |function does not has a pyhton implementation, then the code |
+ | | | |is inserted before c++ call |
+ | | +---------+--------------------------------------------------------------+
+ | | |end |Same as above, but the code is inserted after c++ call |
+---------------+------+---------+--------------------------------------------------------------+
|typesystem |native|beginning|Write code to the beginning of the module ``.cpp`` file, right|
| | | |after the ``#include`` clauses. This position has a similar |