~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/debug/module.cc

  • Committer: Brian Aker
  • Date: 2010-12-27 20:20:52 UTC
  • mto: (2023.2.10 bool)
  • mto: This revision was merged to the branch mainline in revision 2037.
  • Revision ID: brian@tangent.org-20101227202052-fzftwyo0vu02zhpa
Refactor boolean function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
#include <signal.h>
40
40
 
 
41
#include <drizzled/util/backtrace.h>
41
42
#include <drizzled/function/func.h>
42
43
#include <drizzled/item/cmpfunc.h>
43
44
#include <drizzled/item/function/boolean.h>
44
 
#include <drizzled/plugin/function.h>
45
 
#include <drizzled/util/backtrace.h>
46
45
 
47
46
using namespace drizzled;
48
47
 
57
56
    unsigned_flag= true;
58
57
  }
59
58
 
60
 
  const char *func_name() const { return "assert_and_crash"; }
61
 
  const char *fully_qualified_func_name() const { return "assert_and_crash()"; }
 
59
  const char *func_name() const { return "assert"; }
 
60
  const char *fully_qualified_func_name() const { return "assert()"; }
62
61
 
63
62
  bool val_bool()
64
63
  {
138
137
 
139
138
static int initialize(drizzled::module::Context &context)
140
139
{
141
 
  context.add(new drizzled::plugin::Create_function<debug::Assert>("assert_and_crash"));
 
140
  context.add(new drizzled::plugin::Create_function<debug::Assert>("assert"));
142
141
  context.add(new drizzled::plugin::Create_function<debug::Backtrace>("backtrace"));
143
142
  context.add(new drizzled::plugin::Create_function<debug::Crash>("crash"));
144
143
 
154
153
  "Useful functions for programmers to debug the server.",
155
154
  PLUGIN_LICENSE_BSD,
156
155
  initialize, /* Plugin Init */
157
 
  NULL,   /* depends */
 
156
  NULL,   /* system variables */
158
157
  NULL    /* config options */
159
158
}
160
159
DRIZZLE_DECLARE_PLUGIN_END;