jacob-carlborg / dstep

A tool for converting C and Objective-C headers to D modules
204 stars 37 forks source link

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

Open jblachly opened 3 years ago

jblachly commented 3 years ago

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 commented 2 years ago

Seeing same issue when trying to convert WebGPU headers.

#define WGPU_WHOLE_SIZE (0xffffffffffffffffULL)

gets converted to:

enum WGPU_WHOLE_SIZE = 0xffffffffffffffffULL;