Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LL integer literal suffix not recognized in #define macros #258

Open
jblachly opened this issue Aug 14, 2020 · 1 comment
Open

LL integer literal suffix not recognized in #define macros #258

jblachly opened this issue Aug 14, 2020 · 1 comment
Labels

Comments

@jblachly
Copy link

The line

#define REGIDX_MAX (1ULL << 35)

is translated to

enum REGIDX_MAX = 1ULL << 35;

because the integer literal long long suffix is not recognized in the context of the macro.

@helikopterodaktyl
Copy link

Seeing same issue when trying to convert WebGPU headers.

#define WGPU_WHOLE_SIZE (0xffffffffffffffffULL)

gets converted to:

enum WGPU_WHOLE_SIZE = 0xffffffffffffffffULL;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants