Mercurial > pub > dyncall > dyncall
annotate test/suite_aggrs/README.txt @ 462:653b65580cb4
suite_aggr:
- added arrays (inside of structs/unions, only, as only way to pass/return them by value)
- cleanups and pregen of source
author | Tassilo Philipp |
---|---|
date | Tue, 01 Feb 2022 21:44:18 +0100 |
parents | 236015fdf7a8 |
children |
rev | line source |
---|---|
432
167faab0c0be
first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff
changeset
|
1 suite_aggrs for dyncall written in C and Lua. |
167faab0c0be
first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff
changeset
|
2 |
462 | 3 Tests aggregates (structs, unions and arrays) passed by value, along with |
4 other, non-aggregate args. Note, arrays are only passed/returned by value as | |
5 members of structs and unions, as they woult decay to a pointer if passed to a | |
6 function and cannot be returned. | |
7 So this test suite does not generate any arrays outside of structs and unions. | |
439
252f32fa59d8
- suite_aggrs: added compile time knob to enforce intentional struct instance misalignment (should maybe be part of generator)
Tassilo Philipp
parents:
432
diff
changeset
|
8 |
252f32fa59d8
- suite_aggrs: added compile time knob to enforce intentional struct instance misalignment (should maybe be part of generator)
Tassilo Philipp
parents:
432
diff
changeset
|
9 A macro AGGR_MISALIGN can be used in globals.c to intentionally misalign |
252f32fa59d8
- suite_aggrs: added compile time knob to enforce intentional struct instance misalignment (should maybe be part of generator)
Tassilo Philipp
parents:
432
diff
changeset
|
10 aggregate instances. |
432
167faab0c0be
first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff
changeset
|
11 |