jdk/src/java.base/share/native/libjli/java.h
changeset 40695 7996b10bce66
parent 40261 86a49ba76f52
child 40945 f241705723ea
equal deleted inserted replaced
40694:759341b4bd03 40695:7996b10bce66
   251     NULL_CHECK_RETURN_VALUE(NC0_check_pointer, 0)
   251     NULL_CHECK_RETURN_VALUE(NC0_check_pointer, 0)
   252 
   252 
   253 #define NULL_CHECK(NC_check_pointer) \
   253 #define NULL_CHECK(NC_check_pointer) \
   254     NULL_CHECK_RETURN_VALUE(NC_check_pointer, )
   254     NULL_CHECK_RETURN_VALUE(NC_check_pointer, )
   255 
   255 
       
   256 #define CHECK_EXCEPTION_RETURN_VALUE(CER_value) \
       
   257     do { \
       
   258         if ((*env)->ExceptionOccurred(env)) { \
       
   259             return CER_value; \
       
   260         } \
       
   261     } while (JNI_FALSE)
       
   262 
   256 #define CHECK_EXCEPTION_RETURN() \
   263 #define CHECK_EXCEPTION_RETURN() \
   257     do { \
   264     do { \
   258         if ((*env)->ExceptionOccurred(env)) { \
   265         if ((*env)->ExceptionOccurred(env)) { \
   259             return; \
   266             return; \
   260         } \
   267         } \