Use actual generated code for 'would like' prologue.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13646 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
abe23f2ca0
commit
7330e2bbf7
1 changed files with 11 additions and 4 deletions
|
|
@ -514,13 +514,20 @@ What we would like to generate as a C interface of this function would be someth
|
|||
|
||||
<div class="targetlang"><pre>
|
||||
//proxy header file
|
||||
SomeClass *new_SomeClass(void);
|
||||
void delete_SomeClass(SomeClass* carg);
|
||||
typedef struct SwigObj_SomeClass SomeClass;
|
||||
|
||||
SomeClass * new_SomeClass();
|
||||
|
||||
void delete_SomeClass(SomeClass * carg1);
|
||||
|
||||
SomeClass* someFunction(SomeIntTemplateClass* carg1, int carg2);
|
||||
|
||||
|
||||
typedef struct SwigObj_SomeIntTemplateClass SomeIntTemplateClass;
|
||||
|
||||
SomeIntTemplateClass * new_SomeIntTemplateClass();
|
||||
|
||||
void delete_SomeIntTemplateClass(SomeIntTemplateClass * carg1);
|
||||
|
||||
SomeClass *someFunction(SomeIntTemplateClass *someParameter, int simpleInt);
|
||||
</pre></div>
|
||||
|
||||
When we generate the bindings, we generate code for two translation units:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue