SlickEdit Product Discussion > SlickEdit®

C/C++ Preprocessing does not work as I expect when using unsigned indicator 'U'

(1/1)

tsunokawa:
Hello,

I'm using SlickEdit Pro 2019 (v24.0.2.0 64-bit)

If I put 'U' (or 'u' which indicate that the number is unsigned) at the last of the number, the C/C++ preprocessing blocking did not work properly.

Example
- The header file
#define DEF_TEST_1U 1U

- The code file
#if DEF_TEST_1U == 1
    int a = 1; /* This was grayed out, but should not */
#endif

Attached the result of my experiment.
Is there any way to correct this?

Best regards,
Tsunokawa

Dennis:
Reproduced.  Nice catch.  Not hot-fixable, but I'll try to get a fix in for the next update or release.

tsunokawa:
Thanks a lot.
It is very applicated if you fixed it, since this feature is very helpful for me.

Navigation

[0] Message Index

Go to full version