dstep icon indicating copy to clipboard operation
dstep copied to clipboard

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

Open jblachly opened this issue 3 years ago • 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.

jblachly avatar Aug 14 '20 02:08 jblachly

Seeing same issue when trying to convert WebGPU headers.

#define WGPU_WHOLE_SIZE (0xffffffffffffffffULL)

gets converted to:

enum WGPU_WHOLE_SIZE = 0xffffffffffffffffULL;

helikopterodaktyl avatar Oct 25 '21 18:10 helikopterodaktyl