123
This commit is contained in:
22
RenderDll/XRenderOGL/NVParse/nvparse_errors.h
Normal file
22
RenderDll/XRenderOGL/NVParse/nvparse_errors.h
Normal 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
|
||||
Reference in New Issue
Block a user