diff options
| author | Evan Haas <evan@lagerdata.com> | 2021-02-25 16:43:39 -0800 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2021-02-28 21:56:57 +0200 |
| commit | 294ee1bbc93a00ead5182234f824b0a665c579d9 (patch) | |
| tree | 2938d0ebf9309bfbef8021bad0fbf9d6a7b5fd76 /src/Module.zig | |
| parent | 0423f0f7d8afc24e48926849515f60a8a3a1e470 (diff) | |
| download | zig-294ee1bbc93a00ead5182234f824b0a665c579d9.tar.gz zig-294ee1bbc93a00ead5182234f824b0a665c579d9.zip | |
translate-c: add limited OffsetOfExpr support
Add support for OffsetOfExpr that contain exactly 1 component, when that component
is a field.
For example, given:
```c
struct S {
float f;
double d;
};
struct T {
long l;
int i;
struct S s[10];
};
```
Then:
```c
offsetof(struct T, i) // supported
offsetof(struct T, s[2].d) // not supported currently
```
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions
