mirror of
https://github.com/facebook/zstd
synced 2026-08-22 22:32:07 -04:00
Remove Error Strings with ZSTD_STRIP_ERROR_STRINGS
This commit is contained in:
parent
9d5f3963ff
commit
605dd576ee
1 changed files with 4 additions and 0 deletions
|
|
@ -14,6 +14,9 @@
|
|||
|
||||
const char* ERR_getErrorString(ERR_enum code)
|
||||
{
|
||||
#ifdef ZSTD_STRIP_ERROR_STRINGS
|
||||
return "Error strings stripped";
|
||||
#else
|
||||
static const char* const notErrorCode = "Unspecified error code";
|
||||
switch( code )
|
||||
{
|
||||
|
|
@ -46,4 +49,5 @@ const char* ERR_getErrorString(ERR_enum code)
|
|||
case PREFIX(maxCode):
|
||||
default: return notErrorCode;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue