mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Use __func__ instead of __FUNCTION__
They are equivalent, but __func__ is in C99. __FUNCTION__ exists only for backwards compatibility with old gcc versions. Signed-off-by: Michael Forney <mforney@mforney.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
5905af1996
commit
0baf7b377c
4 changed files with 10 additions and 10 deletions
|
|
@ -244,8 +244,8 @@ size_t snd_strlcpy(char *dst, const char *src, size_t size);
|
|||
#ifndef NDEBUG
|
||||
#define CHECK_SANITY(x) x
|
||||
extern snd_lib_error_handler_t snd_err_msg;
|
||||
#define SNDMSG(args...) snd_err_msg(__FILE__, __LINE__, __FUNCTION__, 0, ##args)
|
||||
#define SYSMSG(args...) snd_err_msg(__FILE__, __LINE__, __FUNCTION__, errno, ##args)
|
||||
#define SNDMSG(args...) snd_err_msg(__FILE__, __LINE__, __func__, 0, ##args)
|
||||
#define SYSMSG(args...) snd_err_msg(__FILE__, __LINE__, __func__, errno, ##args)
|
||||
#else
|
||||
#define CHECK_SANITY(x) 0 /* not evaluated */
|
||||
#define SNDMSG(args...) /* nop */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue