mirror of
https://github.com/jeremysrand/abCalc.git
synced 2024-12-27 21:29:22 +00:00
36 lines
560 B
C
36 lines
560 B
C
/*
|
|
abCError.h
|
|
By: Jeremy Rand
|
|
*/
|
|
|
|
|
|
#ifndef ABCERROR_H
|
|
#define ABCERROR_H
|
|
|
|
|
|
typedef enum abCalcErrorType {
|
|
abCalcErrorTypeMin = 0,
|
|
abCalcNoError,
|
|
abCalcSyntaxError,
|
|
abCalcBadArgTypeError,
|
|
abCalcBadArgValueError,
|
|
abCalcTooFewArgsError,
|
|
abCalcStackFullError,
|
|
abCalcInfiniteResultError,
|
|
abCalcComplexResultError,
|
|
|
|
abCalcErrorTypeMax
|
|
} abCalcErrorType;
|
|
|
|
|
|
void abCalcErrorInit(void);
|
|
|
|
void abCalcRaiseError(abCalcErrorType type, char *opName);
|
|
|
|
char *abCalcGetError(void);
|
|
|
|
void abCalcClearError(void);
|
|
|
|
|
|
#endif
|