~yshurik/libmemcached/libmemcached-win

« back to all changes in this revision

Viewing changes to libtest/memcached.hpp

  • Committer: Continuous Integration
  • Date: 2013-04-03 13:16:24 UTC
  • mfrom: (1100.1.1 libmemcached-1.2)
  • Revision ID: ci@tangent.org-20130403131624-j59dhv5z5l0lsdld
Merge lp:~tangent-org/libmemcached/1.2-build/ Build: jenkins-Libmemcached-250

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
#if defined(HAVE_LIBMEMCACHED) && HAVE_LIBMEMCACHED
40
40
inline bool operator== (const memcached_st& memc, const memcached_return_t rc)
41
41
{
42
 
  if (memcached_last_error(const_cast<memcached_st *>(&memc)) == rc)
43
 
  {
44
 
    return true;
45
 
  }
46
 
 
47
 
  return false;
48
 
}
49
 
 
50
 
inline bool operator!= (const memcached_st& memc, const memcached_return_t rc)
51
 
{
52
 
  if (memcached_last_error(const_cast<memcached_st *>(&memc)) != rc)
53
 
  {
54
 
    return true;
55
 
  }
56
 
 
57
 
  return false;
58
 
}
59
 
 
60
 
inline bool operator!= (const memcached_return_t rc, const memcached_st& memc)
61
 
{
62
 
  if (memcached_last_error(const_cast<memcached_st *>(&memc)) != rc)
 
42
  if (memcached_last_error(&memc) == rc)
 
43
  {
 
44
    return true;
 
45
  }
 
46
 
 
47
  return false;
 
48
}
 
49
 
 
50
inline bool operator!= (const memcached_st& memc, memcached_return_t rc)
 
51
{
 
52
  if (memcached_last_error(const_cast<memcached_st *>(&memc)) != rc)
 
53
  {
 
54
    return true;
 
55
  }
 
56
 
 
57
  return false;
 
58
}
 
59
 
 
60
inline bool operator== (memcached_st* const memc, memcached_return_t rc)
 
61
{
 
62
  if (memcached_last_error(memc) == rc)
 
63
  {
 
64
    return true;
 
65
  }
 
66
 
 
67
  return false;
 
68
}
 
69
 
 
70
inline bool operator!= (memcached_st* const memc, memcached_return_t rc)
 
71
{
 
72
  if (memcached_last_error(memc) != rc)
 
73
  {
 
74
    return true;
 
75
  }
 
76
 
 
77
  return false;
 
78
}
 
79
 
 
80
inline bool operator!= (memcached_return_t rc, const memcached_st& memc)
 
81
{
 
82
  if (memcached_last_error(const_cast<memcached_st *>(&memc)) != rc)
 
83
  {
 
84
    return true;
 
85
  }
 
86
 
 
87
  return false;
 
88
}
 
89
 
 
90
inline bool operator!= (memcached_return_t rc, memcached_st* const memc)
 
91
{
 
92
  if (memcached_last_error(memc) != rc)
63
93
  {
64
94
    return true;
65
95
  }