You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by nandika jayawardana <ja...@gmail.com> on 2005/11/03 11:00:08 UTC

[AXIS2C ] Using a macro to convert between impl_t structs and interface structs

Hi All ,

By using a macro to convert between _impl_t struct and interface struct can
make life easier in writing code since we can replace castings with macros.
Eg
To convert between axis2_om_node struct and axis2_om_node_impl_t struct we
can use a macro
AXIS2_INTF_TO_IMPL(node) ((axis2_om_node_impl_t*)node)

This will make code more readable as well .

regards ......

nandika