Skip to content

Translate-C @compileError() vulkan_core.h macro. #4577

Open
@JesseRMeyer

Description

@JesseRMeyer
#define VK_DEFINE_HANDLE(object) typedef struct object##_T* object;

Translated by zig version 0.5.0+68dbba212 zig translate-c C:\VulkanSDK\1.2.131.2\Include\vulkan\vulkan.h > vulkan.zig

produces:

pub const VK_DEFINE_HANDLE = @compileError("unable to translate C expr: unexpected token Id{ .Keyword_typedef = void }");

You can translate-c that macro in isolation and still reproduce the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    translate-cC to Zig source translation feature (@cImport)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions