diff options
author | Daniel Juyung Seo <seojuyung2@gmail.com> | 2013-12-26 12:22:05 +0900 |
---|---|---|
committer | Daniel Juyung Seo <seojuyung2@gmail.com> | 2013-12-26 12:27:13 +0900 |
commit | 76d8532b5465362f85b75a2a7a5cc3c419304a92 (patch) | |
tree | 73482a7b3a246f56d555fd206903db683b14c6aa /src/modules/evas/engines/gl_common | |
parent | 10dd650d90d050889771f88d8b01eb7c1f51b0bd (diff) | |
download | efl-76d8532b5465362f85b75a2a7a5cc3c419304a92.tar.gz |
efl: Unified eina critical manro to CRI.
Being annoyed by different types of eina critical macros - CRI, CRIT,
CRITICAL -, I concluded to unify them to one. Discussed on IRC and
finally, CRI was chosen to meet the consistency with other macros -
ERR, WRN, INF, DBG - in terms of the number of characters.
If there is any missing bits, please let me know.
Diffstat (limited to 'src/modules/evas/engines/gl_common')
-rw-r--r-- | src/modules/evas/engines/gl_common/evas_gl_api.c | 4 | ||||
-rw-r--r-- | src/modules/evas/engines/gl_common/evas_gl_core_private.h | 6 | ||||
-rw-r--r-- | src/modules/evas/engines/gl_common/evas_gl_private.h | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_api.c b/src/modules/evas/engines/gl_common/evas_gl_api.c index a2ba18c542..d831f9d73d 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_api.c +++ b/src/modules/evas/engines/gl_common/evas_gl_api.c @@ -20,7 +20,7 @@ void _make_current_check(const char* api) if (!ctx) { - CRIT("\e[1;33m%s\e[m: Current Context NOT SET: GL Call Should NOT Be Called without MakeCurrent!!!", api); + CRI("\e[1;33m%s\e[m: Current Context NOT SET: GL Call Should NOT Be Called without MakeCurrent!!!", api); } } @@ -38,7 +38,7 @@ void _direct_rendering_check(const char *api) if (_evgl_not_in_pixel_get()) { - CRIT("\e[1;33m%s\e[m: This API is being called outside Pixel Get Callback Function.", api); + CRI("\e[1;33m%s\e[m: This API is being called outside Pixel Get Callback Function.", api); } } diff --git a/src/modules/evas/engines/gl_common/evas_gl_core_private.h b/src/modules/evas/engines/gl_common/evas_gl_core_private.h index 254da65bf7..85ccf9e265 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_core_private.h +++ b/src/modules/evas/engines/gl_common/evas_gl_core_private.h @@ -29,10 +29,10 @@ extern int _evas_gl_log_dom; #endif #define WRN(...) EINA_LOG_DOM_WARN(_evas_gl_log_dom, __VA_ARGS__) -#ifdef CRIT -# undef CRIT +#ifdef CRI +# undef CRI #endif -#define CRIT(...) EINA_LOG_DOM_CRIT(_evas_gl_log_dom, __VA_ARGS__) +#define CRI(...) EINA_LOG_DOM_CRIT(_evas_gl_log_dom, __VA_ARGS__) struct _EVGL_Interface diff --git a/src/modules/evas/engines/gl_common/evas_gl_private.h b/src/modules/evas/engines/gl_common/evas_gl_private.h index a178823fd9..8f7eb21a23 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_private.h +++ b/src/modules/evas/engines/gl_common/evas_gl_private.h @@ -24,9 +24,9 @@ extern int _evas_engine_GL_common_log_dom; #endif #define WRN(...) EINA_LOG_DOM_WARN(_evas_engine_GL_common_log_dom, __VA_ARGS__) -#ifdef CRIT -# undef CRIT +#ifdef CRI +# undef CRI #endif -#define CRIT(...) EINA_LOG_DOM_CRIT(_evas_engine_GL_common_log_dom, __VA_ARGS__) +#define CRI(...) EINA_LOG_DOM_CRIT(_evas_engine_GL_common_log_dom, __VA_ARGS__) #endif |