Merge pull request #73 from shiyj/master

using error code instead of the long desc strings;
This commit is contained in:
朱天龙 (Armink)
2023-09-04 10:34:19 +08:00
committed by GitHub
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -112,6 +112,8 @@ static const char * const print_info[] = {
#include "Languages/zh-CN/cmb_zh_CN.h"
#elif (CMB_PRINT_LANGUAGE == CMB_PRINT_LANGUAGE_CHINESE_UTF8)
#include "Languages/zh-CN/cmb_zh_CN_UTF8.h"
#elif (CMB_PRINT_LANGUAGE == CMB_PRINT_LANGUAGE_CUSTOM)
#include "cmb_language_custom.h"
#else
#error "CMB_PRINT_LANGUAGE defined error in 'cmb_cfg.h'"
#endif
+1
View File
@@ -51,6 +51,7 @@
#define CMB_PRINT_LANGUAGE_ENGLISH 0
#define CMB_PRINT_LANGUAGE_CHINESE 1
#define CMB_PRINT_LANGUAGE_CHINESE_UTF8 2
#define CMB_PRINT_LANGUAGE_CUSTOM 0xFF
/* name max length, default size: 32 */
#ifndef CMB_NAME_MAX