Fix example to show %feature directive before method declaration.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12613 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5c4f47302a
commit
efafe8e70b
1 changed files with 2 additions and 2 deletions
|
|
@ -2534,13 +2534,13 @@ slot:
|
||||||
|
|
||||||
<div class="code">
|
<div class="code">
|
||||||
<pre>
|
<pre>
|
||||||
|
%feature("python:slot", "tp_hash", functype="hashfunc") Cheese::cheeseHashFunc;
|
||||||
|
|
||||||
class Cheese {
|
class Cheese {
|
||||||
public:
|
public:
|
||||||
Cheese (const char *name);
|
Cheese (const char *name);
|
||||||
long cheeseHashFunc () const;
|
long cheeseHashFunc () const;
|
||||||
};
|
};
|
||||||
|
|
||||||
%feature("python:slot", "tp_hash", functype="hashfunc") Cheese::cheeseHashFunc;
|
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue