*** empty log message ***
This commit is contained in:
12
laerror.cc
12
laerror.cc
@@ -3,6 +3,11 @@
|
||||
#include "laerror.h"
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
|
||||
#ifdef USE_TRACEBACK
|
||||
#include "traceback.h"
|
||||
#endif
|
||||
|
||||
void laerror(const char *s1)
|
||||
{
|
||||
std::cerr << "LA:ERROR - ";
|
||||
@@ -13,8 +18,13 @@ void laerror(const char *s1)
|
||||
std::cout << s1 << "\n";
|
||||
}
|
||||
if(errno) perror("system error");
|
||||
throw LAerror(s1);
|
||||
|
||||
#ifdef USE_TRACEBACK
|
||||
traceback(1);
|
||||
exit(1);
|
||||
#else
|
||||
throw LAerror(s1); //traceback possible via sigtraceback, but BFD library might fail for -O3 code on some machines and source lines would not be available
|
||||
#endif
|
||||
}
|
||||
|
||||
//stub for f77 blas called from strassen routine
|
||||
|
||||
Reference in New Issue
Block a user