~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/util/test.h

  • Committer: Monty Taylor
  • Date: 2010-02-05 08:11:15 UTC
  • mfrom: (1283 build)
  • mto: (1273.13.43 fix_is)
  • mto: This revision was merged to the branch mainline in revision 1300.
  • Revision ID: mordred@inaugust.com-20100205081115-dr82nvrwv4lvw7sd
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#if defined(__cplusplus)
25
25
 
 
26
namespace drizzled
 
27
{
 
28
 
26
29
template <class T>
27
30
inline bool test(const T a)
28
31
{
35
38
  return ((a & b) == b);
36
39
}
37
40
 
 
41
} /* namespace drizzled */
 
42
 
38
43
#else
39
44
# define test(a)    ((a) ? 1 : 0)
40
45
# define test_all_bits(a,b) (((a) & (b)) == (b))