~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/definitions.h

  • Committer: Lee Bieber
  • Date: 2011-02-18 23:49:00 UTC
  • mfrom: (2182.1.4 build)
  • Revision ID: kalebral@gmail.com-20110218234900-7zxzvw9x7e7zwflr
Merge Brian - add safe_delete()
Merge Stewart - 720552: doStartIndexScan return code ignored in optimizer::sum_query() for MIN() optimization 
Merge Olaf - add register keyword
Merge Patrick - 720813: syntax error in dbqp that is breaking it

Show diffs side-by-side

added added

removed removed

Lines of Context:
402
402
  if (a > b)
403
403
    a=b;
404
404
}
 
405
 
 
406
template<class T> inline void safe_delete(T*& ptr)
 
407
{
 
408
  delete ptr;
 
409
  ptr = 0;
 
410
}
405
411
#else
406
412
#ifdef __GNUC__
407
413
#define set_if_bigger(a,b) do {                 \