static int G__ManualBase4_142_4_8(G__value *result7,G__CONST char *funcname,struct G__param *libp,int hash) {
   // We need to emulate:
   //    return WriteObjectAny(obj,TClass::GetClass(typeid(T)),name,option);

   // Here find the class name 
   G__ClassInfo ti( libp->para[0].tagnum );

   switch(libp->paran) {
   case 3:
      G__letint(result7,105,(long)((TDirectory*)(G__getstructoffset()))->WriteObjectAny((const void*)G__int(libp->para[0]),ti.Name(),(const char*)G__int(libp->para[1])
,(Option_t*)G__int(libp->para[2])));
      break;
   case 2:
      G__letint(result7,105,(long)((TDirectory*)(G__getstructoffset()))->WriteObjectAny((const void*)G__int(libp->para[0]),ti.Name(),(const char*)G__int(libp->para[1])));
      break;
   }
   return(1 || funcname || hash || result7 || libp) ;
}

static int G__ManualBase4_142_5_8(G__value *result7,G__CONST char *funcname,struct G__param *libp,int hash) {
   // We need to emulate:
   //     ptr = (T*)GetObjectChecked(namecycle,TClass::GetClass(typeid(T)));

   // Here find the class name 
   G__ClassInfo ti( libp->para[1].tagnum );

   G__setnull(result7);
   TDirectory *directory = ((TDirectory*)(G__getstructoffset()));
   const char* namecycle = (const char*)G__int(libp->para[0]);
   void *ptr = directory->GetObjectChecked( namecycle, ti.Name() );
   void **ptrarg;
   if ( libp->para[1].ref ) {
      ptrarg = (void**)libp->para[1].ref;
   } else {
      ptrarg = (void**)(&G__Mlong(libp->para[1]));
   }
   *ptrarg = ptr;

   return(1 || funcname || hash || result7 || libp) ;
}
