Mercurial > pub > dyncall > dyncall
comparison test/callback_suite_aggrs/README.txt @ 523:cd46e111bc4c
- new test/callback_suite_aggrs (currently ahead of checked-in dyncall code and won't compile, though, as with call_suite_aggrs; dc code will be checked in, soon)
author | Tassilo Philipp |
---|---|
date | Wed, 13 Apr 2022 14:59:57 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
522:f7fec6699e21 | 523:cd46e111bc4c |
---|---|
1 callback_suite_aggrs for dyncall written in C and Lua. | |
2 | |
3 Tests getting aggregates (structs, unions and arrays) back from a callback to | |
4 whom they were passed by value, along with other, non-aggregate args. Note, | |
5 arrays are only passed/returned by value as members of structs and unions, as | |
6 they would decay to a pointer in C if passed to a function, and cannot be | |
7 returned. | |
8 So this test suite does not generate any arrays outside of structs and unions. | |
9 | |
10 A macro AGGR_MISALIGN can be used in globals.c to intentionally misalign | |
11 aggregate instances used with callback object. |