Macro incorrectly parsed
mrx23dot opened this issue · comments
Type: Bug
vscode parses this differently from GCC, both should be active
#define XXBBX_ENABLED 1u
#define NRF_MODULE_ENABLED(module) defined(module ## _ENABLED)
#if XXBBX_ENABLED
active(); //ok
#endif
#if NRF_MODULE_ENABLED(XXBBX)
inactive(); //nok
#endif
Extension version: 1.17.5
VS Code version: Code 1.73.1 (6261075646f055b99068d3688932416f2346dd3b, 2022-11-09T04:27:29.066Z)
OS version: Windows_NT x64 10.0.19045
Modes: Unsupported
Sandboxed: No
System Info
Item | Value |
---|---|
CPUs | Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz (8 x 2304) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_renderer: enabled_on video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off |
Load (avg) | undefined |
Memory (System) | 15.81GB (5.38GB free) |
Process Argv | |
Screen Reader | no |
VM | 0% |