Blame src/include/internal_libabrt.h
|
Packit |
8ea169 |
/*
|
|
Packit |
8ea169 |
Copyright (C) 2014 ABRT team
|
|
Packit |
8ea169 |
Copyright (C) 2014 RedHat Inc
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
This program is free software; you can redistribute it and/or modify
|
|
Packit |
8ea169 |
it under the terms of the GNU General Public License as published by
|
|
Packit |
8ea169 |
the Free Software Foundation; either version 2 of the License, or
|
|
Packit |
8ea169 |
(at your option) any later version.
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
This program is distributed in the hope that it will be useful,
|
|
Packit |
8ea169 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
8ea169 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
8ea169 |
GNU General Public License for more details.
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
You should have received a copy of the GNU General Public License along
|
|
Packit |
8ea169 |
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
Packit |
8ea169 |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
Packit |
8ea169 |
*/
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
#include "libabrt.h"
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
#ifdef HAVE_CONFIG_H
|
|
Packit |
8ea169 |
# include "config.h"
|
|
Packit |
8ea169 |
#endif
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
#undef NORETURN
|
|
Packit |
8ea169 |
#define NORETURN __attribute__ ((noreturn))
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
/* Must be after #include "config.h" */
|
|
Packit |
8ea169 |
#if ENABLE_NLS
|
|
Packit |
8ea169 |
# include <libintl.h>
|
|
Packit |
8ea169 |
# define _(S) dgettext(PACKAGE, S)
|
|
Packit |
8ea169 |
#else
|
|
Packit |
8ea169 |
# define _(S) (S)
|
|
Packit |
8ea169 |
#endif
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
extern int g_libabrt_inited;
|
|
Packit |
8ea169 |
void libabrt_init(void);
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
#define INITIALIZE_LIBABRT() \
|
|
Packit |
8ea169 |
do \
|
|
Packit |
8ea169 |
{ \
|
|
Packit |
8ea169 |
if (!g_libabrt_inited) \
|
|
Packit |
8ea169 |
{ \
|
|
Packit |
8ea169 |
g_libabrt_inited = 1; \
|
|
Packit |
8ea169 |
libabrt_init(); \
|
|
Packit |
8ea169 |
} \
|
|
Packit |
8ea169 |
} \
|
|
Packit |
8ea169 |
while (0)
|
|
Packit |
8ea169 |
|