You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2005/11/03 05:57:30 UTC
svn commit: r330450 - /webservices/axis2/trunk/c/include/axis2_environment.h
Author: samisa
Date: Wed Nov 2 20:57:24 2005
New Revision: 330450
URL: http://svn.apache.org/viewcvs?rev=330450&view=rev
Log:
AXIS2_ENVIRONMENT_CHECK macro added
Modified:
webservices/axis2/trunk/c/include/axis2_environment.h
Modified: webservices/axis2/trunk/c/include/axis2_environment.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_environment.h?rev=330450&r1=330449&r2=330450&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_environment.h (original)
+++ webservices/axis2/trunk/c/include/axis2_environment.h Wed Nov 2 20:57:24 2005
@@ -99,6 +99,23 @@
/** @} */
+AXIS2_ENVIRONMENT_CHECK(env,error_return) \
+ if(!env || !(*env)) \
+ { \
+ axis2_allocator_t *allocator = axis2_allocator_init (NULL); \
+ *env = axis2_environment_create (allocator, NULL, NULL, NULL); \
+ AXIS2_ERROR_SET_STATUS_CODE((*env)->error, AXIS2_FAILURE); \
+ AXIS2_ERROR_SET_ERROR_NUMBER((*env)->error, \
+ AXIS2_ERROR_ENVIRONMENT_IS_NULL); \
+ return error_return; \
+ } \
+
+
+
+
+
+
+
#ifdef __cplusplus
}
#endif