*** empty log message ***

This commit is contained in:
jiri 2008-12-17 15:34:25 +00:00
parent 24cd7fff35
commit e49f2a9d6c
2 changed files with 12 additions and 7 deletions

View File

@ -30,6 +30,7 @@
#include "traceback.h"
#endif
void laerror(const char *s1)
{
std::cerr << "LA:ERROR - ";
@ -41,12 +42,7 @@ void laerror(const char *s1)
}
if(errno) perror("system error");
#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
throw LAerror(s1);
}
//stub for f77 blas called from strassen routine

View File

@ -18,14 +18,23 @@
#ifndef _LAERROR_H_
#define _LAERROR_H_
#include <iostream>
//exception class for laerror
class LAerror
{
const char *msg;
public:
const char *msg;
LAerror(const char *s) {msg=s;};
};
extern void laerror(const char *);
inline std::ostream & operator<<(std::ostream &s, const LAerror &x)
{
s << x.msg;
return s;
}
#endif