Add more precise error codes

This commit is contained in:
Alexis Engelke
2019-11-02 22:31:10 +01:00
parent 21c40c48d0
commit dbfcf33c33
2 changed files with 31 additions and 23 deletions

View File

@@ -103,6 +103,12 @@ typedef struct {
uintptr_t address;
} FdInstr;
typedef enum {
FD_ERR_UD = -1,
FD_ERR_INTERNAL = -2,
FD_ERR_PARTIAL = -3,
} FdErr;
/** Decode an instruction.
* \param buf Buffer for instruction bytes.