Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

translate-c: interaction between bitfield struct and C macro generate [*c]OpaqueStruct #121

@iacore

Description

@iacore

Zig Version

0.12.0-dev.167+dd6a9caea

Steps to Reproduce and Observed Behavior

Here's what the offending code looks like. (BAZ)

#include <stdint.h>
#include <stddef.h>



typedef struct {
    unsigned int isTeapot : 1;
} Foo;

#define BAZ(a) (Foo *)NULL

Expected Behavior

It should work, or be left out

Related

#179

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions