ErrorPos =============================================================================
| 9 | // ErrorPos |
| 10 | // ============================================================================= |
| 11 | struct ErrorPos |
| 12 | { |
| 13 | String8 file; |
| 14 | int line; |
| 15 | String8 error; |
| 16 | bool fatal; |
| 17 | |
| 18 | ErrorPos(); |
| 19 | ErrorPos(const ErrorPos& that); |
| 20 | ErrorPos(const String8& file, int line, const String8& error, bool fatal); |
| 21 | ~ErrorPos(); |
| 22 | bool operator<(const ErrorPos& rhs) const; |
| 23 | bool operator==(const ErrorPos& rhs) const; |
| 24 | ErrorPos& operator=(const ErrorPos& rhs); |
| 25 | |
| 26 | void print(FILE* to) const; |
| 27 | }; |
| 28 | |
| 29 | static vector<ErrorPos> g_errors; |
| 30 |