libabacus/include/result.h

26 lines
481 B
C
Raw Normal View History

#ifndef LIBABACUS_RESULT_H
#define LIBABACUS_RESULT_H
/**
* An enum that represents the outcomes of
* libabacus functions that can fail.
*/
enum libab_result_e {
LIBAB_SUCCESS,
LIBAB_MALLOC,
LIBAB_BAD_PATTERN,
LIBAB_FAILED_MATCH,
2018-04-17 12:55:30 -07:00
LIBAB_UNKNOWN_TYPE,
LIBAB_BAD_TYPE,
LIBAB_EOF,
LIBAB_UNEXPECTED,
LIBAB_AMBIGOUS_TYPE,
LIBAB_MISMATCHED_TYPE,
LIBAB_BAD_CALL,
LIBAB_AMBIGOUS_CALL
};
typedef enum libab_result_e libab_result;
#endif