jacob-carlborg/dstep

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

Opened this issue · 1 comments

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.

Seeing same issue when trying to convert WebGPU headers.

#define WGPU_WHOLE_SIZE (0xffffffffffffffffULL)

gets converted to:

enum WGPU_WHOLE_SIZE = 0xffffffffffffffffULL;