summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_safety_checks.h
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2020-05-07 09:27:07 -0400
committerChristopher Michael <devilhorns@comcast.net>2020-05-07 09:27:07 -0400
commitd135957ffa0ae429f4ca22662de8633771984485 (patch)
tree8dcacdd71c83d4c5a7ffb239e428dd81e5d725df /src/lib/eina/eina_safety_checks.h
parentde939ca64b3d17ee786f3fc621314fce1746334e (diff)
Use __func__ C99 identifier instead of __FUNCTION__ compiler extension
Summary: see http://www.open-std.org/JTC1/SC22/wg14/www/docs/n1124.pdf section 6.4.2.2 page 52 Test Plan: compilation Reviewers: raster, devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11785
Diffstat (limited to '')
-rw-r--r--src/lib/eina/eina_safety_checks.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina/eina_safety_checks.h b/src/lib/eina/eina_safety_checks.h
index 27551290d6..0819a1079f 100644
--- a/src/lib/eina/eina_safety_checks.h
+++ b/src/lib/eina/eina_safety_checks.h
@@ -105,7 +105,7 @@ EAPI extern Eina_Error EINA_ERROR_SAFETY_FAILED;
105 * @internal 105 * @internal
106 */ 106 */
107EAPI void _eina_safety_error(const char *file, const char *func, int line, const char *str); 107EAPI void _eina_safety_error(const char *file, const char *func, int line, const char *str);
108# define EINA_SAFETY_ERROR(msg) _eina_safety_error(__FILE__, __FUNCTION__, __LINE__, msg) 108# define EINA_SAFETY_ERROR(msg) _eina_safety_error(__FILE__, __func__, __LINE__, msg)
109# else 109# else
110# define EINA_SAFETY_ERROR(msg) EINA_LOG_ERR("%s", msg) 110# define EINA_SAFETY_ERROR(msg) EINA_LOG_ERR("%s", msg)
111# endif 111# endif