}
+#if defined(LIBMEMCACHED) && LIBMEMCACHED
+bool operator== (const memcached_st&c memc, const memcached_return_t rc)
+{
+ if (memcached_last_error(&memc) == rc)
+ {
+ return true;
+ }
+
+ return false;
+}
+
+bool operator!= (const memcached_st&c memc, const memcached_return_t rc)
+{
+ if (memcached_last_error(&memc) != rc)
+ {
+ return true;
+ }
+
+ return false;
+}
+#endif
global_pairs[x].key, global_pairs[x].key_length,
&blob[0], blob.size(),
time_t(0), uint32_t(0));
- test_true_got(rc == MEMCACHED_SUCCESS or rc == MEMCACHED_SERVER_MEMORY_ALLOCATION_FAILURE, memcached_strerror(NULL, rc));
+ test_true_got(rc == MEMCACHED_SUCCESS
+ or rc == MEMCACHED_SERVER_MEMORY_ALLOCATION_FAILURE
+ or rc == MEMCACHED_MEMORY_ALLOCATION_FAILURE, memcached_strerror(NULL, rc));
}
return TEST_SUCCESS;