mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-03 17:35:27 +00:00
add option UC_ERR_OPT_INVALID to uc_strerror()
This commit is contained in:
parent
66526d775b
commit
8336852e81
|
@ -143,7 +143,7 @@ typedef enum uc_err {
|
||||||
|
|
||||||
// Runtime option for the Unicorn engine
|
// Runtime option for the Unicorn engine
|
||||||
typedef enum uc_opt_type {
|
typedef enum uc_opt_type {
|
||||||
UC_OPT_WINDOWS_TIB = 1, // Setup Windows Thread Information Block
|
UC_OPT_WINDOWS_TIB = 1, // Setup Windows Thread Information Block
|
||||||
} uc_opt_type;
|
} uc_opt_type;
|
||||||
|
|
||||||
|
|
||||||
|
|
2
uc.c
2
uc.c
|
@ -96,6 +96,8 @@ const char *uc_strerror(uc_err code)
|
||||||
return "Fetch from unaligned memory (UC_ERR_FETCH_UNALIGNED)";
|
return "Fetch from unaligned memory (UC_ERR_FETCH_UNALIGNED)";
|
||||||
case UC_ERR_RESOURCE:
|
case UC_ERR_RESOURCE:
|
||||||
return "Insufficient resource (UC_ERR_RESOURCE)";
|
return "Insufficient resource (UC_ERR_RESOURCE)";
|
||||||
|
case UC_ERR_OPT_INVALID:
|
||||||
|
return "Invalid option (UC_ERR_OPT_INVALID)";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue