* @~English * @brief Return a string corresponding to a KTX error code. * * @param error the error code for which to return a string * * @return pointer to the message string. * * @internal Use UTF-8 for translated message strings. * * @author Mark Callow */
| 57 | * @author Mark Callow |
| 58 | */ |
| 59 | const char* ktxErrorString(KTX_error_code error) |
| 60 | { |
| 61 | if (error < 0 || error > KTX_ERROR_MAX_ENUM) |
| 62 | return "Unrecognized error code"; |
| 63 | return errorStrings[error]; |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * @~English |
no outgoing calls