00001 #include "G__ci.h" 00002 #include "Api.h" 00003 #include "FastAllocString.h" 00004 00005 #ifndef __CINT__ 00006 static const char *what = WHAT; 00007 #endif 00008 00009 static int stlLoader() 00010 { 00011 G__ClassInfo cl("TSystem"); 00012 if (cl.IsValid() && strlen(WHAT)<1000) { 00013 G__FastAllocString buf; 00014 buf.Format("\"lib%sDict\"",what); 00015 00016 G__CallFunc func; 00017 long offset; 00018 func.SetFuncProto(&cl,"Load","const char*",&offset); 00019 00020 if (func.InterfaceMethod()) { 00021 long tmp = G__int(G__calc("gSystem")); 00022 void * gsystem = (void*)tmp; 00023 00024 func.SetArgs(buf); 00025 func.Exec(gsystem); 00026 } 00027 } 00028 return 0; 00029 } 00030 00031 static int sltLoad = stlLoader();