Mercurial > pub > dyncall > dyncall
diff 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 |
line wrap: on
line diff
--- a/test/suite_aggrs/README.txt Mon Jan 31 14:41:11 2022 +0100 +++ b/test/suite_aggrs/README.txt Tue Feb 01 21:44:18 2022 +0100 @@ -1,7 +1,10 @@ suite_aggrs for dyncall written in C and Lua. -Tests aggregates (structs, unions) passed by value, along with other, -non-aggregate args. +Tests aggregates (structs, unions and arrays) passed by value, along with +other, non-aggregate args. Note, arrays are only passed/returned by value as +members of structs and unions, as they woult decay to a pointer if passed to a +function and cannot be returned. +So this test suite does not generate any arrays outside of structs and unions. A macro AGGR_MISALIGN can be used in globals.c to intentionally misalign aggregate instances.