ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/lsys/util.cpp
Revision: 1.1
Committed: Thu Nov 6 14:31:24 2008 UTC (15 years, 5 months ago) by root
Branch: MAIN
CVS Tags: HEAD
Log Message:
*** empty log message ***

File Contents

# Content
1 /*
2 * misc. utilities
3 */
4
5 #include "config.h"
6
7 #include <string>
8 #include <sstream>
9
10 #include "util.h"
11 #include "lsys.h"
12
13 error::error (const string &s, const module &m) t_no
14 {
15 ostringstream o;
16 o << s << ", module " << m << ", at " << m.where;
17 msg = o.str ();
18 }
19
20 error::error (const string &s, int line) t_no
21 {
22 ostringstream o;
23 o << s << ", at line " << line;
24 msg = o.str ();
25 }
26
27