mirror of
https://github.com/amd/blis.git
synced 2026-05-13 02:25:39 +00:00
Merge pull request #545 from hominhquan/clean_error
bli_error: more cleanup on the error strings array
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
#include "blis.h"
|
||||
|
||||
// Internal array to hold error strings.
|
||||
static char bli_error_string[BLIS_MAX_NUM_ERR_MSGS][BLIS_MAX_ERR_MSG_LENGTH] =
|
||||
static char *bli_error_string[-BLIS_ERROR_CODE_MAX] =
|
||||
{
|
||||
[-BLIS_INVALID_ERROR_CHECKING_LEVEL] = "Invalid error checking level.",
|
||||
[-BLIS_UNDEFINED_ERROR_CODE] = "Undefined error code.",
|
||||
|
||||
@@ -35,12 +35,6 @@
|
||||
#ifndef BLIS_ERROR_MACRO_DEFS_H
|
||||
#define BLIS_ERROR_MACRO_DEFS_H
|
||||
|
||||
// -- Error-related macros --
|
||||
|
||||
// Used to determine the size of the array of error strings.
|
||||
#define BLIS_MAX_NUM_ERR_MSGS 200
|
||||
#define BLIS_MAX_ERR_MSG_LENGTH 200
|
||||
|
||||
// Used to insert filenames and line numbers into error-checking code.
|
||||
#define bli_check_error_code( code ) \
|
||||
bli_check_error_code_helper( code, __FILE__, __LINE__ )
|
||||
|
||||
Reference in New Issue
Block a user