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:
Marcelo Matus 2006-03-16 01:44:26 +00:00
commit 735ac78241
2 changed files with 7 additions and 7 deletions

View file

@ -3033,7 +3033,7 @@ proxy, just before the return statement.
// Add python code to bar() // Add python code to bar()
%feature("pythonpreppend") Foo::bar(int) %{ %feature("pythonprepend") Foo::bar(int) %{
#do something before C++ call #do something before C++ call
%} %}
@ -3050,10 +3050,10 @@ public:
</div> </div>
<p> <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 features are safer to use than the <tt>shadow</tt> feature. Also, from
SWIG version 1.3.28 you can use the directive forms 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"> <div class="code">
@ -3062,7 +3062,7 @@ SWIG version 1.3.28 you can use the directive forms
// Add python code to bar() // Add python code to bar()
%pythonpreppend Foo::bar(int) %{ %pythonprepend Foo::bar(int) %{
#do something before C++ call #do something before C++ call
%} %}

View file

@ -173,12 +173,12 @@ These methods "may be called" if needed.
/* /*
Add python code to the proxy/shadow code 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 %pythonappend - Add code after the C++ function is called
*/ */
#define %pythonpreppend %feature("pythonpreppend") #define %pythonprepend %feature("pythonprepend")
#define %clearpythonpreppend %feature("pythonpreppend","") #define %clearpythonprepend %feature("pythonprepend","")
#define %pythonappend %feature("pythonappend") #define %pythonappend %feature("pythonappend")
#define %clearpythonappend %feature("pythonappend","") #define %clearpythonappend %feature("pythonappend","")