~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/util/test.h

Merge Monty

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))