#include "TArrayL64.h"
#include "TClass.h"
#include "TInterpreter.h"
+#if ROOT_VERSION_CODE < ROOT_VERSION(5,99,0)
#include "TCint.h"
+# define LAST_ERR_LINENO G__lasterror_linenum()
+#else
+# define LAST_ERR_LINENO 0
+#endif
ClassImp(AliHLTGlobalTriggerWrapper)
// Default destructor.
fClass->Destructor(fObject);
+#if ROOT_VERSION_CODE < ROOT_VERSION(5,99,0)
G__set_errmsgcallback(NULL);
+#endif
}
{
fCallFailed = true;
HLTError(gCINTErrorMessage.Data());
- HLTFatal("Error interpreting the code for class '%s' at line %d.", fClass->GetName(), G__lasterror_linenum());
+ HLTFatal("Error interpreting the code for class '%s' at line %d.", fClass->GetName(), LAST_ERR_LINENO);
}
}
{
fCallFailed = true;
HLTError(gCINTErrorMessage.Data());
- HLTFatal("Error interpreting the code for class '%s' at line %d.", fClass->GetName(), G__lasterror_linenum());
+ HLTFatal("Error interpreting the code for class '%s' at line %d.", fClass->GetName(), LAST_ERR_LINENO);
}
}
{
fCallFailed = true;
HLTError(gCINTErrorMessage.Data());
- HLTFatal("Error interpreting the code for class '%s' at line %d.", fClass->GetName(), G__lasterror_linenum());
+ HLTFatal("Error interpreting the code for class '%s' at line %d.", fClass->GetName(), LAST_ERR_LINENO);
}
}
{
fCallFailed = true;
HLTError(gCINTErrorMessage.Data());
- HLTFatal("Error interpreting the code for class '%s' at line %d.", fClass->GetName(), G__lasterror_linenum());
+ HLTFatal("Error interpreting the code for class '%s' at line %d.", fClass->GetName(), LAST_ERR_LINENO);
return false;
}
return bool(retval);
{
fCallFailed = true;
HLTError(gCINTErrorMessage.Data());
- HLTFatal("Error interpreting the code for class '%s' at line %d.", fClass->GetName(), G__lasterror_linenum());
+ HLTFatal("Error interpreting the code for class '%s' at line %d.", fClass->GetName(), LAST_ERR_LINENO);
}
static const TArrayL64 emptyArray;
const TArrayL64* ptr = &emptyArray; // Make sure we do not return a NULL pointer.
{
fCallFailed = true;
HLTError(gCINTErrorMessage.Data());
- HLTFatal("Error interpreting the code for class '%s' at line %d.", fClass->GetName(), G__lasterror_linenum());
+ HLTFatal("Error interpreting the code for class '%s' at line %d.", fClass->GetName(), LAST_ERR_LINENO);
}
}