you mean a check if klass is NULL ?


On Tue, Apr 22, 2014 at 10:59 AM, Levi Bard <notifications@github.com>wrote:

> In mono/metadata/class.c:
>
> > @@ -7777,6 +7779,33 @@ mono_class_get_nested_types (MonoClass* klass, gpointer *iter)
> >  }
> >
> >  /**
> > + * mono_class_get_userdata:
> > + * @class: the MonoClass to act on
> > + *
> > + * Returns: the userdata associated with this class. Unity uses this to store classID information.
> > + */
> > +
> > +void*
> > +mono_class_get_userdata (MonoClass *klass)
> > +{
> > +	return klass->user_data;
>
> Error checking could be nice here.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/Unity-Technologies/mono/pull/117/files#r11843627>
> .
>