M7350/base/tools/localize/SourcePos.h
2024-09-09 08:52:07 +00:00

29 lines
459 B
C++

#ifndef SOURCEPOS_H
#define SOURCEPOS_H
#include <string>
using namespace std;
class SourcePos
{
public:
string file;
int line;
SourcePos(const string& f, int l);
SourcePos(const SourcePos& that);
SourcePos();
~SourcePos();
string ToString() const;
int Error(const char* fmt, ...) const;
static bool HasErrors();
static void PrintErrors(FILE* to);
};
extern const SourcePos GENERATED_POS;
#endif // SOURCEPOS_H