diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-10-01 07:26:01 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-10-01 07:32:43 +0300 |
commit | c1ae12bf5e3dd77e1b814869dcb5766a0a51d594 (patch) | |
tree | b9de3a7dab39bbc8a6050398e1b25e6d1e5352b2 /intern | |
parent | 2c317457cbf2407c6fea136624ec5324a92b28ab (diff) |
Cleanup: dna_genfile API for accessing struct member offsets
- Rename `find_elem` to `elem_offset` (matching `elem_exists`).
- Remove unused `SDNA_StructMember` return argument.
- Return an offset instead of a pointer which was being converted
back into an offset by one caller,
in this case there was no way to tell the difference between
and element that doesn't exist and a struct member
at the start of the array.
Resolves UBSan warning raised in T81340.
Diffstat (limited to 'intern')
0 files changed, 0 insertions, 0 deletions