Struct field function pointers, cstring, show toast error in cimport
This commit is contained in:
parent
c7a3c7b7d6
commit
21bd2d4112
7 changed files with 121 additions and 28 deletions
|
|
@ -48,4 +48,10 @@ unsigned char test_call_param6(UNION2 param1) {
|
|||
|
||||
int test_call_param7(union UNION1 param1) {
|
||||
return param1.field1;
|
||||
}
|
||||
|
||||
float test_call_param8(int *param1) {
|
||||
*param1 = 5 * *param1;
|
||||
|
||||
return 1.0 * *param1;
|
||||
}
|
||||
|
|
@ -52,6 +52,12 @@ typedef struct {
|
|||
ENUM4 *field5[TEST_INT];
|
||||
} STRUCT4;
|
||||
|
||||
typedef struct STRUCT5 {
|
||||
int (*tci)();
|
||||
struct STRUCT1 (*tcp)(int);
|
||||
float (*tcp8)(int *i);
|
||||
} STRUCT5;
|
||||
|
||||
union UNION1 {
|
||||
int field1;
|
||||
float field2;
|
||||
|
|
@ -69,4 +75,5 @@ STRUCT2 test_call_param3(int param1, struct STRUCT1 param2);
|
|||
ENUM2 test_call_param4(enum ENUM param1);
|
||||
union UNION1 test_call_param5(float param1);
|
||||
unsigned char test_call_param6(UNION2 param1);
|
||||
int test_call_param7(union UNION1 param1);
|
||||
int test_call_param7(union UNION1 param1);
|
||||
float test_call_param8(int *param1);
|
||||
Loading…
Add table
Add a link
Reference in a new issue