Mercurial > pub > dyncall > dyncall
view test/call_suite_aggrs/README.txt @ 519:99819b874bac
test/call_suite_aggrs:
- refactored generator code a bit to be simpler, write cleaner output, have better shareability and clarity
- added rtypes w/ default value nil to config.lua, to self document
- shared some code under test/common/
- fixed nonemptyaggrs sigs and cases.h (accidentally overwritten with cases having empty aggrs)
author | Tassilo Philipp |
---|---|
date | Mon, 11 Apr 2022 22:26:07 +0200 |
parents | ed7d1f5e7973 |
children |
line wrap: on
line source
call_suite_aggrs for dyncall written in C and Lua. 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 would decay to a pointer in C 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.