2014-08-01 23:25:41 -05:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
typedef struct TestStruct {
|
2015-01-24 17:18:19 -06:00
|
|
|
uint8_t x;
|
|
|
|
int32_t y;
|
2014-08-01 23:25:41 -05:00
|
|
|
} TestStruct;
|
|
|
|
|
|
|
|
typedef int callback(TestStruct s);
|
|
|
|
|
|
|
|
uint32_t call(callback *c) {
|
2015-01-24 17:18:19 -06:00
|
|
|
TestStruct s;
|
|
|
|
s.x = 'a';
|
|
|
|
s.y = 3;
|
2014-08-01 23:25:41 -05:00
|
|
|
|
2015-01-24 17:18:19 -06:00
|
|
|
return c(s);
|
2014-08-01 23:25:41 -05:00
|
|
|
}
|