ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/common.h in xlsxwriter-0.1.2.pre vs ext/xlsxwriter/libxlsxwriter/include/xlsxwriter/common.h in xlsxwriter-0.2.0.pre

- old
+ new

@@ -217,10 +217,12 @@ #define RETURN_ON_ERROR(error) \ if (error) \ return error; +#if 0 + #define LXW_WARN(message) \ fprintf(stderr, "[WARNING]: " message "\n") /* We can't use variadic macros here since we support ANSI C. */ #define LXW_WARN_FORMAT(message) \ @@ -265,9 +267,23 @@ if (!axis->is_value && !axis->is_date) { \ fprintf(stderr, "[WARNING]: " \ function "() is only valid for value and date axes\n"); \ return; \ } + +#else + +#define LXW_WARN(message) {} +#define LXW_WARN_FORMAT(message) {} +#define LXW_WARN_FORMAT1(message, var) {} +#define LXW_WARN_FORMAT2(message, var1, var2) {} +#define LXW_WARN_CAT_AXIS_ONLY(function) {} +#define LXW_WARN_VALUE_AXIS_ONLY(function) {} +#define LXW_WARN_DATE_AXIS_ONLY(function) {} +#define LXW_WARN_CAT_AND_DATE_AXIS_ONLY(function) {} +#define LXW_WARN_VALUE_AND_DATE_AXIS_ONLY(function) {} + +#endif #ifndef LXW_BIG_ENDIAN #define LXW_UINT32_NETWORK(n) ((((n) & 0xFF) << 24) | \ (((n) & 0xFF00) << 8) | \ (((n) & 0xFF0000) >> 8) | \