From ff729cca1a0398d847d5b0363e61be98a0c099c0 Mon Sep 17 00:00:00 2001 From: Renato Filho Date: Tue, 24 Aug 2010 17:24:33 -0300 Subject: Doc for new inject code rule. Reviewer: Luciano Wolf Hugo Parente Lima --- doc/codeinjectionsemantics.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'doc/codeinjectionsemantics.rst') diff --git a/doc/codeinjectionsemantics.rst b/doc/codeinjectionsemantics.rst index aaa965fea..872662ada 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 | -- cgit v1.2.3