#ifndef __ADEMCO_CONFIG_H__ #define __ADEMCO_CONFIG_H__ #pragma once #ifdef ADEMCO_EXPORTS #if defined __GNUC__ #define ADEMCO_EXPORT_SYMBOL __attribute__((visibility("default"))) #elif defined(_MSC_VER) #define ADEMCO_EXPORT_SYMBOL __declspec(dllexport) #else #define ADEMCO_EXPORT_SYMBOL #endif #else // ADEMCO_EXPORTS #define ADEMCO_EXPORT_SYMBOL #endif // ADEMCO_EXPORTS #if defined(SWIGJAVA) || defined(SWIGCSHARP) #define ademco_char_t uint8_t #else #define ademco_char_t char #endif #ifndef ADEMCO_ENABLE_CHINESE #define ADEMCO_ENABLE_CHINESE 1 #endif #ifndef ADEMCO_ENABLE_PARSE_ERROR #define ADEMCO_ENABLE_PARSE_ERROR 1 #endif #if ADEMCO_ENABLE_PARSE_ERROR #define ADEMCO_FILL_PARSE_ERROR(err, offset_, msg_) \ do { \ if (err) { \ err->line = __LINE__; \ err->offset = (offset_); \ err->msg = (msg_); \ } \ } while (0); #else #define ADEMCO_FILL_PARSE_ERROR(err, offset_, msg_) #endif // ADEMCO_ENABLE_PARSE_ERROR #endif