fix mispelled prepend, reported by Jeremy McCormick
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9007 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6e5ed937ec
commit
735ac78241
2 changed files with 7 additions and 7 deletions
|
|
@ -3033,7 +3033,7 @@ proxy, just before the return statement.
|
|||
|
||||
// Add python code to bar()
|
||||
|
||||
%feature("pythonpreppend") Foo::bar(int) %{
|
||||
%feature("pythonprepend") Foo::bar(int) %{
|
||||
#do something before C++ call
|
||||
%}
|
||||
|
||||
|
|
@ -3050,10 +3050,10 @@ public:
|
|||
</div>
|
||||
|
||||
<p>
|
||||
Notes: Usually the <tt>pythonappend</tt> and <tt>pythonpreppend</tt>
|
||||
Notes: Usually the <tt>pythonappend</tt> and <tt>pythonprepend</tt>
|
||||
features are safer to use than the <tt>shadow</tt> feature. Also, from
|
||||
SWIG version 1.3.28 you can use the directive forms
|
||||
<tt>%pythonappend</tt> and <tt>%pythonpreppend</tt> as follows:</p>
|
||||
<tt>%pythonappend</tt> and <tt>%pythonprepend</tt> as follows:</p>
|
||||
|
||||
|
||||
<div class="code">
|
||||
|
|
@ -3062,7 +3062,7 @@ SWIG version 1.3.28 you can use the directive forms
|
|||
|
||||
// Add python code to bar()
|
||||
|
||||
%pythonpreppend Foo::bar(int) %{
|
||||
%pythonprepend Foo::bar(int) %{
|
||||
#do something before C++ call
|
||||
%}
|
||||
|
||||
|
|
|
|||
|
|
@ -173,12 +173,12 @@ These methods "may be called" if needed.
|
|||
/*
|
||||
Add python code to the proxy/shadow code
|
||||
|
||||
%pythonpreppend - Add code before the C++ function is called
|
||||
%pythonprepend - Add code before the C++ function is called
|
||||
%pythonappend - Add code after the C++ function is called
|
||||
*/
|
||||
|
||||
#define %pythonpreppend %feature("pythonpreppend")
|
||||
#define %clearpythonpreppend %feature("pythonpreppend","")
|
||||
#define %pythonprepend %feature("pythonprepend")
|
||||
#define %clearpythonprepend %feature("pythonprepend","")
|
||||
|
||||
#define %pythonappend %feature("pythonappend")
|
||||
#define %clearpythonappend %feature("pythonappend","")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue