You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by na...@apache.org on 2006/02/17 05:58:36 UTC
svn commit: r378431 - /webservices/axis2/trunk/c/include/axis2_env.h
Author: nandika
Date: Thu Feb 16 20:58:33 2006
New Revision: 378431
URL: http://svn.apache.org/viewcvs?rev=378431&view=rev
Log:
AXIS2_ENV_CHECK macro error fixed
Modified:
webservices/axis2/trunk/c/include/axis2_env.h
Modified: webservices/axis2/trunk/c/include/axis2_env.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_env.h?rev=378431&r1=378430&r2=378431&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_env.h (original)
+++ webservices/axis2/trunk/c/include/axis2_env.h Thu Feb 16 20:58:33 2006
@@ -143,8 +143,14 @@
AXIS2_DECLARE(axis2_status_t) axis2_env_write_log (axis2_env_t **env, const char* message, axis2_log_levels_t level);
#define AXIS2_LOG(env, message, level) axis2_env_write_log (env,message, level)
- #define AXIS2_ENV_CHECK(env, error_return) \
- if(!env || !(*env)) \
+
+
+#define AXIS2_ENV_CHECK(env, error_return) \
+ if(!env) \
+ { \
+ return error_return; \
+ } \
+ if(!(*env)) \
{ \
axis2_allocator_t *allocator = axis2_allocator_init (NULL); \
*env = axis2_env_create (allocator); \