mirror of
https://github.com/capstone-engine/capstone.git
synced 2025-01-18 20:23:24 +00:00
add CS_ERR_DIET error code to report information irrelevant in diet engine
This commit is contained in:
parent
3626a35314
commit
f7cdbdf501
2
cs.c
2
cs.c
@ -131,6 +131,8 @@ const char *cs_strerror(cs_err code)
|
||||
return "Dynamic memory management uninitialized (CS_ERR_MEMSETUP)";
|
||||
case CS_ERR_VERSION:
|
||||
return "Different API version between core & binding (CS_ERR_VERSION)";
|
||||
case CS_ERR_DIET:
|
||||
return "Information irrelevant in diet engine (CS_ERR_DIET)";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -175,6 +175,7 @@ typedef enum cs_err {
|
||||
CS_ERR_DETAIL, // Information is unavailable because detail option is OFF
|
||||
CS_ERR_MEMSETUP, // Dynamic memory management uninitialized (see CS_OPT_MEM)
|
||||
CS_ERR_VERSION, // Unsupported version (bindings)
|
||||
CS_ERR_DIET, // Access irrelevant data in "diet" engine
|
||||
} cs_err;
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user