Freeciv-3.2
Loading...
Searching...
No Matches
utility
bugs.c
Go to the documentation of this file.
1
/***********************************************************************
2
Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; either version 2, or (at your option)
6
any later version.
7
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
GNU General Public License for more details.
12
***********************************************************************/
13
14
#ifdef HAVE_CONFIG_H
15
#include <fc_config.h>
16
#endif
/* HAVE_CONFIG_H */
17
18
#include "
fc_prehdrs.h
"
19
20
#include <stdarg.h>
21
22
/* utility */
23
#include "
fcintl.h
"
24
#include "
log.h
"
25
26
#include "
bugs.h
"
27
28
/********************************************************************/
31
void
bugreport_request
(
const
char
*
reason_format
, ...)
32
{
33
va_list
args;
34
char
buf
[1024];
35
36
va_start
(args,
reason_format
);
37
vdo_log
(
__FILE__
,
__FUNCTION__
,
__FC_LINE__
,
FALSE
,
LOG_ERROR
,
38
buf
,
sizeof
(
buf
),
reason_format
, args);
39
va_end
(args);
40
41
/* TRANS: No full stop after the URL, could cause confusion. */
42
log_error
(
_
(
"Please report this message at %s"
),
BUG_URL
);
43
}
bugreport_request
void bugreport_request(const char *reason_format,...)
Definition
bugs.c:31
bugs.h
incite_cost
char * incite_cost
Definition
comments.c:75
fc_prehdrs.h
fcintl.h
_
#define _(String)
Definition
fcintl.h:67
vdo_log
void vdo_log(const char *file, const char *function, int line, bool print_from_where, enum log_level level, char *buf, int buflen, const char *message, va_list args)
Definition
log.c:403
log.h
__FC_LINE__
#define __FC_LINE__
Definition
log.h:40
LOG_ERROR
@ LOG_ERROR
Definition
log.h:30
log_error
#define log_error(message,...)
Definition
log.h:103
FALSE
#define FALSE
Definition
support.h:47
Generated on Sun Dec 22 2024 23:00:34 for Freeciv-3.2 by
1.9.8