Jan Breuer
2015-10-04 26f6db056b48a58ac725ea0026a215bfc70bfa73
Enable all errors on full blown systems by default

Enable SCPI_ErrorTranslate on full blown systems to support all
defined strings and not just limited subset.

This should work on all Windows, Linux and Unix platforms
1个文件已修改
20 ■■■■■ 已修改文件
libscpi/inc/scpi/config.h 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
libscpi/inc/scpi/config.h
@@ -54,14 +54,30 @@
#define SCPI_LINE_ENDING        LINE_ENDING_CRLF
#endif
/* Enable full error list
/**
 * Detect, if it has limited resources or it is running on a full blown operating system.
 * All values can be overiden by scpi_user_config.h
 */
#define SYSTEM_BARE_METAL 0
#define SYSTEM_FULL_BLOWN 1
/* This should cover all windows compilers (msvc, mingw, cvi) and all Linux/OSX/BSD and other UNIX compatible systems (gcc, clang) */
#if defined(_WIN32) || defined(_WIN64) || defined(__unix) || defined(__unix__) || defined(__APPLE__)
#define SYSTEM_TYPE SYSTEM_FULL_BLOWN
#else
#define SYSTEM_TYPE SYSTEM_BARE_METAL
#endif
/**
 * Enable full error list
 * 0 = Minimal set of errors
 * 1 = Full set of errors
 *
 * For small systems, full set of errors will occupy large ammount of data
 * It is enabled by default on full blown systems and disabled on limited bare metal systems
 */
#ifndef USE_FULL_ERROR_LIST
#define USE_FULL_ERROR_LIST 0
#define USE_FULL_ERROR_LIST SYSTEM_TYPE
#endif
/**