use X Macros to remove #undef in errors.
This commit is contained in:
@@ -39,12 +39,10 @@
|
||||
|
||||
#if TUSB_CFG_DEBUG == 3
|
||||
|
||||
// TODO X macro to remove define/undefine
|
||||
char const* const TUSB_ErrorStr[] = {
|
||||
# define ERROR_ENUM(x) #x,
|
||||
# include "errors_def"
|
||||
# undef ERROR_ENUM
|
||||
0
|
||||
char const* const TUSB_ErrorStr[] =
|
||||
{
|
||||
ERROR_TABLE(ERROR_STRING)
|
||||
0
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user