~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/errmsg_print.h

  • Committer: Brian Aker
  • Date: 2009-05-23 17:13:03 UTC
  • mfrom: (1034.1.8 merge)
  • Revision ID: brian@gaz-20090523171303-d28xhutqic0xe2b4
Merge Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#ifndef DRIZZLED_ERRMSG_PRINT_H
26
26
#define DRIZZLED_ERRMSG_PRINT_H
27
27
 
28
 
namespace drizzled
29
 
{
 
28
//void sql_print_error (const char *format, ...);
 
29
//void sql_print_warning (const char *format, ...);
 
30
//void sql_print_information (const char *format, ...);
 
31
//void sql_perror (const char *message);
30
32
 
31
33
#define ERRMSG_LVL_DBUG 1
32
34
#define ERRMSG_LVL_INFO 2
33
35
#define ERRMSG_LVL_WARN 3
34
36
#define ERRMSG_LVL_ERROR 4
35
37
 
36
 
bool errmsg_printf(int priority, char const *format, ...)
37
 
  __attribute__((format(printf, 2, 3)));
38
 
 
39
 
void sql_perror(const char *message);
40
 
 
41
 
} /* namespace drizzled */
 
38
// todo: add __attribute__((format(printf, 1, 2)))
 
39
bool errmsg_printf (int priority, char const *format, ...);
 
40
 
 
41
void sql_perror (const char *message);
42
42
 
43
43
#endif /* DRIZZLED_ERRMSG_PRINT_H */
44
44