summaryrefslogtreecommitdiff
path: root/src/benchmarks/eina/Ecore_Data.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/benchmarks/eina/Ecore_Data.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/benchmarks/eina/Ecore_Data.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/benchmarks/eina/Ecore_Data.h b/src/benchmarks/eina/Ecore_Data.h
index 6641eff267..a085401242 100644
--- a/src/benchmarks/eina/Ecore_Data.h
+++ b/src/benchmarks/eina/Ecore_Data.h
@@ -69,7 +69,7 @@ extern "C" {
69 "\t%s();\n\n" \ 69 "\t%s();\n\n" \
70 "\tWith the parameter:\n\n" \ 70 "\tWith the parameter:\n\n" \
71 "\t%s\n\n" \ 71 "\t%s\n\n" \
72 "\tbeing NULL. Please fix your program.", __FUNCTION__, sparam); \ 72 "\tbeing NULL. Please fix your program.", __func__, sparam); \
73 if (getenv("ECORE_ERROR_ABORT")) { abort(); } \ 73 if (getenv("ECORE_ERROR_ABORT")) { abort(); } \
74 return ret; \ 74 return ret; \
75 } 75 }
@@ -83,14 +83,14 @@ extern "C" {
83 "\t%s();\n\n" \ 83 "\t%s();\n\n" \
84 "\tWith the parameter:\n\n" \ 84 "\tWith the parameter:\n\n" \
85 "\t%s\n\n" \ 85 "\t%s\n\n" \
86 "\tbeing NULL. Please fix your program.", __FUNCTION__, sparam); \ 86 "\tbeing NULL. Please fix your program.", __func__, sparam); \
87 if (getenv("ECORE_ERROR_ABORT")) { abort(); } \ 87 if (getenv("ECORE_ERROR_ABORT")) { abort(); } \
88 return; \ 88 return; \
89 } 89 }
90 90
91 91
92# ifdef __sgi 92# ifdef __sgi
93# define __FUNCTION__ "unknown" 93# define __func__ "unknown"
94# ifndef __cplusplus 94# ifndef __cplusplus
95# define inline 95# define inline
96# endif 96# endif