abCalc/abCalcError.h
2013-07-24 16:15:11 -05:00

34 lines
508 B
C

/*
abCalcError.h
By: Jeremy Rand
*/
#ifndef ABCALCERROR_H
#define ABCALCERROR_H
typedef enum abCalcErrorType {
abCalcErrorTypeMin = 0,
abCalcNoError,
abCalcSyntaxError,
abCalcBadArgTypeError,
abCalcBadArgValueError,
abCalcTooFewArgsError,
abCalcStackFullError,
abCalcErrorTypeMax
} abCalcErrorType;
void abCalcErrorInit(void);
void abCalcRaiseError(abCalcErrorType type, char *opName);
char *abCalcGetError(void);
void abCalcClearError(void);
#endif