Messages in this thread | | | Date | Wed, 7 Sep 2022 00:48:05 +0200 | Subject | Re: [PATCH 1/2] testing/selftests: Add tests for the is_signed_type() macro | From | Rasmus Villemoes <> |
| |
On 07/09/2022 00.42, Bart Van Assche wrote:
> Since I would like to implement the above suggestion I tried to look up > other uses of the __UNSIGNED_CHAR__ macro. However, I couldn't find any. > Did I perhaps do something wrong? > $ git grep -w __UNSIGNED_CHAR__ origin/master | wc > 0 0 0
No, sorry, I did. It's __CHAR_UNSIGNED__ . Here's the description from 'info cpp':
'__CHAR_UNSIGNED__' GCC defines this macro if and only if the data type 'char' is unsigned on the target machine.
Rasmus
| |