mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8193419: Better Internet address support
Reviewed-by: chegar, rriggs, igerasim, skoivu, rhalade
This commit is contained in:
parent
addc5a823f
commit
d5e9b33541
13 changed files with 102 additions and 16 deletions
|
@ -297,6 +297,22 @@ JNU_NotifyAll(JNIEnv *env, jobject object);
|
|||
} \
|
||||
} while (0) \
|
||||
|
||||
#define CHECK_NULL_THROW_NPE(env, x, msg) \
|
||||
do { \
|
||||
if ((x) == NULL) { \
|
||||
JNU_ThrowNullPointerException((env), (msg));\
|
||||
return; \
|
||||
} \
|
||||
} while(0) \
|
||||
|
||||
#define CHECK_NULL_THROW_NPE_RETURN(env, x, msg, z)\
|
||||
do { \
|
||||
if ((x) == NULL) { \
|
||||
JNU_ThrowNullPointerException((env), (msg));\
|
||||
return (z); \
|
||||
} \
|
||||
} while(0) \
|
||||
|
||||
#define CHECK_NULL_RETURN(x, y) \
|
||||
do { \
|
||||
if ((x) == NULL) { \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue