Last change
on this file since 5 was
5,
checked in by anonymous, 17 years ago
|
=hoffentlich gehts jetzt
|
File size:
506 bytes
|
Rev | Line | |
---|
[5] | 1 | #ifndef _NVPARSE_ERRORS_H_ |
---|
| 2 | #define _NVPARSE_ERRORS_H_ |
---|
| 3 | |
---|
| 4 | #ifdef _WIN32 |
---|
| 5 | #pragma warning(disable:4786) // stupid symbol size limitation |
---|
| 6 | #endif |
---|
| 7 | |
---|
| 8 | #define NVPARSE_MAX_ERRORS 32 |
---|
| 9 | class nvparse_errors |
---|
| 10 | { |
---|
| 11 | public: |
---|
| 12 | nvparse_errors(); |
---|
| 13 | ~nvparse_errors(); |
---|
| 14 | |
---|
| 15 | void reset(); |
---|
| 16 | void set(const char * e); |
---|
| 17 | void set(const char * e, int line_number); |
---|
| 18 | char * const * const get_errors(); |
---|
| 19 | inline int get_num_errors() { return num_errors; } |
---|
| 20 | private: |
---|
| 21 | char* elist [NVPARSE_MAX_ERRORS+1]; |
---|
| 22 | int num_errors; |
---|
| 23 | }; |
---|
| 24 | |
---|
| 25 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.