Revision 8eb02df3513f50baa92ef0d97716b086fe25e411 authored by Jonas Rembser on 01 August 2023, 08:50:15 UTC, committed by Jonas Rembser on 26 September 2023, 22:11:10 UTC
Similar to 736644bce3b, ignoring some warnings from `Vc` that will not
be fixed upstream for the foreseeable time because `Vc` is in
maintainance mode.
1 parent 5a0fb97
Raw File
libs.C
#include "TString.h"
#include "TInterpreter.h"
#include "TSystem.h"

void libs(TString classname)
{
   const char *libname;

   // Find in which library classname sits
   classname.ReplaceAll("_1",":");
   classname.ReplaceAll("_01"," ");
   int i = classname.Index("_3");
   if (i>0) classname.Remove(i,classname.Length()-i);

   libname = gInterpreter->GetClassSharedLibs(classname.Data());
   if (!libname)
      return;

   printf("mainlib=%s", libname);
}
back to top