~stewart/drizzle/docs-improvements-1

« back to all changes in this revision

Viewing changes to drizzled/main.cc

merged with up to date trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems
 
4
 *  Copyright (C) 2008 Sun Microsystems, Inc.
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
199
199
  return;
200
200
}
201
201
 
202
 
static void GoogleProtoErrorThrower(google::protobuf::LogLevel level, const char* filename,
203
 
                       int line, const string& message) throw(const char *)
 
202
static void GoogleProtoErrorThrower(google::protobuf::LogLevel level,
 
203
                                    const char* ,
 
204
                                    int, const string& ) throw(const char *)
204
205
{
205
 
  (void)filename;
206
 
  (void)line;
207
 
  (void)message;
208
 
  std::cerr << "\n";
209
 
  drizzled::util::custom_backtrace();
210
 
  std::cerr << "\n";
211
206
  switch(level)
212
207
  {
213
208
  case google::protobuf::LOGLEVEL_INFO:
216
211
  case google::protobuf::LOGLEVEL_ERROR:
217
212
  case google::protobuf::LOGLEVEL_FATAL:
218
213
  default:
219
 
    std::cerr << "GoogleProtoErrorThrower(" << filename << ", " << line << ", " << message << ")";
220
214
    throw("error in google protocol buffer parsing");
221
215
  }
222
216
}