struct TreeObserverState *tos = (struct TreeObserverState *) treemasterGetUserData(tm); rb_gc_mark(tos->obs); rb_gc_mark(tos->th);
void markTreeMaster(void *ptr){  struct TreeMaster *tm = (struct TreeMaster *) ptr;#if 0  struct TreeObserver *obs = treemasterGetTreeObserver(tm);  //printf("Marking in TreeMaster...\n");  if (obs) {    struct TreeObserverState *tos = (struct TreeObserverState *) obs->ptr;    if (tos->obs != Qnil) {      rb_gc_mark(tos->obs);      if (tos->th != Qnil)        rb_gc_mark(tos->th);    }  }//  printf("Done.\n");#endif}