mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
common: Fix fallback code.
* common/logging.c (_log_assert): Fix the variant for compilers that do not support __FUNCTION__. * common/logging.h (_log_assert): Likewise. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
0cc975d8a1
commit
bfd6a49012
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ estream_t log_get_stream (void);
|
|||
: _log_assert (#expr, __FILE__, __LINE__, __FUNCTION__))
|
||||
#else /*!GPGRT_HAVE_MACRO_FUNCTION*/
|
||||
void bug_at (const char *file, int line);
|
||||
void _log_assert (const char *expr, const char *file, int line;
|
||||
void _log_assert (const char *expr, const char *file, int line);
|
||||
# define BUG() bug_at( __FILE__ , __LINE__ )
|
||||
# define log_assert(expr) \
|
||||
((expr) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue