/* Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison  */
SWIGRUNTIME swig_cast_info* SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty)
/* Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison  */
SWIGRUNTIME swig_cast_info* SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty)
{
    swig_cast_info *iter = ty->cast;
    while (iter) {
      if (iter->type == from) {
        if (iter == ty->cast)
          return iter;
        iter->prev->next = iter->next;
        if (iter->next)
          iter->next->prev = iter->prev;
        iter->next = ty->cast;
        iter->prev = 0;
        if (ty->cast) ty->cast->prev = iter;
        ty->cast = iter;
        return iter;
      }
      iter = iter->next;
    }
  }
  return 0;
}