diff options
| author | Alejandro Colomar <alx@kernel.org> | 2022-11-12 00:48:10 +0100 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2022-11-12 20:22:07 +0100 |
| commit | b08dc96589cdbe65c206d36e2cd516b24967d394 (patch) | |
| tree | 4e7e274ad52684a3c0f28ff54efe79cc2b139e6a /test/test_java_application.py | |
| parent | 7906529a9fdda226cb5914eec4ab347f4e761a02 (diff) | |
| download | unit-b08dc96589cdbe65c206d36e2cd516b24967d394.tar.gz unit-b08dc96589cdbe65c206d36e2cd516b24967d394.tar.bz2 | |
Added nxt_char_cast() macro for casting safely.
This macro is similar to C++'s static_cast(). It allows a very-limited
set of casts to be performed, but rejects most casts. Basically, it
only allows converting from char to u_char and vice-versa, while
respecting the const qualifier.
See the _Generic(3) manual page for more details and examples.
Cc: Andrew Clayton <a.clayton@nginx.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'test/test_java_application.py')
0 files changed, 0 insertions, 0 deletions
