This commit is contained in:
romkazvo
2023-08-07 19:29:24 +08:00
commit 34d6c5d489
4832 changed files with 1389451 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#ifndef _NVPARSE_ERRORS_H_
#define _NVPARSE_ERRORS_H_
#pragma warning(disable:4786) // symbol size limitation
#define NVPARSE_MAX_ERRORS 32
class nvparse_errors
{
public:
nvparse_errors();
~nvparse_errors();
void reset();
void set(const char * e);
void set(const char * e, int line_number);
char * const * const get_errors();
inline int get_num_errors() { return num_errors; }
private:
char* elist [NVPARSE_MAX_ERRORS+1];
int num_errors;
};
#endif