If define BIT7Z_USE_NATIVE_STRING, the definition of BIT7Z_STRING is L##str.
This can be problematic in some cases.
/* define a macro called `STR` */
#define STR "hello"
/* use `BIT7Z_STRING` with `STR` */
BIT7Z_STRING(STR); /* equal to `LSTR`, however `L"hello"` is expected */
The following is a better way to define BIT7Z_STRING
Hi!
I think it might be helpful for the users of bit7z, so I've just pushed a commit to the branch release/v4.0.0 that changes the definition of BIT7Z_STRING as you suggested.
Feature description
If define
BIT7Z_USE_NATIVE_STRING
, the definition ofBIT7Z_STRING
isL##str
. This can be problematic in some cases.The following is a better way to define
BIT7Z_STRING
Additional context
No response
Code of Conduct