[D] Correctly annotate function pointers with C linkage.
Minor cleanups as well. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12899 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1b47ddf8f0
commit
8fa4d20ec3
5 changed files with 50 additions and 8 deletions
|
|
@ -6,6 +6,8 @@ import d_nativepointers.SWIGTYPE_p_OpaqueClass;
|
|||
import d_nativepointers.SWIGTYPE_p_p_SomeClass;
|
||||
import d_nativepointers.SWIGTYPE_p_p_f_p_p_int_p_SomeClass__void;
|
||||
|
||||
extern(C) alias void function(int**, char***) GType;
|
||||
|
||||
void main() {
|
||||
check!(a, int*);
|
||||
check!(b, float**);
|
||||
|
|
@ -13,7 +15,7 @@ void main() {
|
|||
check!(d, SomeClass);
|
||||
check!(e, SWIGTYPE_p_p_SomeClass);
|
||||
check!(f, SWIGTYPE_p_OpaqueClass);
|
||||
check!(g, void function(int**, char***));
|
||||
check!(g, GType);
|
||||
check!(h, SWIGTYPE_p_p_f_p_p_int_p_SomeClass__void);
|
||||
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue