Merge pull request #545 from hominhquan/clean_error

bli_error: more cleanup on the error strings array
This commit is contained in:
Devin Matthews
2021-10-04 15:58:43 -05:00
committed by GitHub
2 changed files with 1 additions and 7 deletions

View File

@@ -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.",

View File

@@ -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__ )