[AXIS2] using a macro for parameter checking

2005-11-03 Thread nandika jayawardana
Hi all, I think we can use a macro for parameter validation in the code, currently for all in parameters to functions we use if(!param) { (*env)-error-error_number = AXIS2_ERROR_INVALID_NULL_PARAMETER; return NULL; /* or appropriate return type */ } these lines are repeatedly used everywhere

Re: [AXIS2] using a macro for parameter checking

2005-11-03 Thread Damitha Kumarage
nandika jayawardana wrote: Hi all, I think we can use a macro for parameter validation in the code, cool currently for all in parameters to functions we use if(!param) { (*env)-error-error_number = AXIS2_ERROR_INVALID_NULL_PARAMETER; BTW you also need to set the status code

Re: [AXIS2] using a macro for parameter checking

2005-11-03 Thread Samisa Abeysinghe
nandika jayawardana wrote: Hi all, I think we can use a macro for parameter validation in the code, currently for all in parameters to functions we use if(!param) { (*env)-error-error_number = AXIS2_ERROR_INVALID_NULL_PARAMETER; return NULL; /* or appropriate return type */ } these