mirror of
https://github.com/djhackersdev/bemanitools.git
synced 2024-11-30 17:24:30 +01:00
feat(avs-util): Add helper to translate property errors
This commit is contained in:
parent
70e8e2a965
commit
94aa0bdda3
@ -97,3 +97,13 @@ const char *avs_util_error_str(avs_error error)
|
||||
|
||||
return avs_util_error_unknown;
|
||||
}
|
||||
|
||||
const char *avs_util_property_error_get_and_clear(struct property *prop)
|
||||
{
|
||||
avs_error error;
|
||||
|
||||
error = property_get_error(prop);
|
||||
property_clear_error(prop);
|
||||
|
||||
return avs_util_error_str(error);
|
||||
}
|
@ -5,4 +5,6 @@
|
||||
|
||||
const char *avs_util_error_str(avs_error error);
|
||||
|
||||
const char *avs_util_property_error_get_and_clear(struct property *prop);
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user