Author Topic: C/C++ Preprocessing does not work as I expect when using unsigned indicator 'U'  (Read 763 times)

tsunokawa

  • Junior Community Member
  • Posts: 7
  • Hero Points: 0
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

  • Senior Community Member
  • Posts: 3954
  • Hero Points: 515
Reproduced.  Nice catch.  Not hot-fixable, but I'll try to get a fix in for the next update or release.

tsunokawa

  • Junior Community Member
  • Posts: 7
  • Hero Points: 0
Thanks a lot.
It is very applicated if you fixed it, since this feature is very helpful for me.