Fix syntax errors for %callback examples
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9883 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
08f3b56f9b
commit
258e9d7a18
2 changed files with 8 additions and 8 deletions
|
|
@ -1856,11 +1856,11 @@ can use the <tt>%callback</tt> and <tt>%nocallback</tt> directives like this:
|
|||
int binary_op(int a, int b, int (*op)(int,int));
|
||||
|
||||
/* Some callback functions */
|
||||
%callback("%s_cb")
|
||||
%callback("%s_cb");
|
||||
int add(int,int);
|
||||
int sub(int,int);
|
||||
int mul(int,int);
|
||||
%nocallback
|
||||
%nocallback;
|
||||
</pre></div>
|
||||
|
||||
<p>
|
||||
|
|
@ -1898,11 +1898,11 @@ variation installs the callbacks as all upper-case constants such as
|
|||
|
||||
<div class="code"><pre>
|
||||
/* Some callback functions */
|
||||
%callback("%(upper)s")
|
||||
%callback("%(upper)s");
|
||||
int add(int,int);
|
||||
int sub(int,int);
|
||||
int mul(int,int);
|
||||
%nocallback
|
||||
%nocallback;
|
||||
</pre></div>
|
||||
|
||||
<p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue