This commit is contained in:
jiri
2010-09-08 16:27:58 +00:00
parent e8cbf9e5fb
commit e580467e5a
14 changed files with 7106 additions and 3691 deletions

View File

@@ -29,10 +29,15 @@ class LAerror
LAerror(const char *s) {msg=s;};
};
extern void laerror(const char *);
#ifdef __GNUG__
#define laerror(X) { LA::laerror2(X, __PRETTY_FUNCTION__); }
#else
#define laerror(X) { LA::laerror2(X, __func__); }
#endif
inline std::ostream & operator<<(std::ostream &s, const LAerror &x)
{
extern void laerror2(const char *, const char *);
inline std::ostream & operator<<(std::ostream &s, const LAerror &x) {
s << x.msg;
return s;
}