# Translate C: Group generated casts · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/895672b3f96aab1f5bad3446f5186a047f29412c)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 895672b3f96aab1f5bad3446f5186a047f29412c

Requested commit: 895672b3f96aab1f5bad3446f5186a047f29412c

Commit: 895672b3f96aab1f5bad3446f5186a047f29412c

Tree: e6ba1f679f7007624233262454365f6ab99243d5

Author: Lachlan Easton

Committer: Andrew Kelley

## Message

```
Translate C: Group generated casts

Translate C: Put an alignCast in c style pointer casts to allow opaque types to cast properly in C macros

Translate C: add test case for aligning opaque types in pointer casts

Translate C: Fix @typeId -> @typeInfo

Add test case to run_translated_c for casting from pointer to opaque type

```

## Parents

- [80ff549e2602ecfc4eaf9ade0108e1779dff1874](https://git.cafe/gitcafe/zig/commit/80ff549e2602ecfc4eaf9ade0108e1779dff1874?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/895672b3f96aab1f5bad3446f5186a047f29412c?format=markdown)
