2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://floralicense.org/license/
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FUiEffects_RendererLog.h
20 * @brief This is the header file for renderer logging definitions
23 #ifndef _FUI_EFFECTS_INTERNAL_RENDERER_LOG_H_
24 #define _FUI_EFFECTS_INTERNAL_RENDERER_LOG_H_
26 namespace Tizen { namespace Ui { namespace Effects { namespace _Renderer
30 * Checks whether there was EGL operation errors
32 * @return true on success othrwise false
34 bool CheckEglNoErrors(void);
37 * Checks whether there was GL operation errors
39 * @return true on success othrwise false
41 bool CheckGlNoErrors(void);
44 #define EGL_ASSERT_NOERRORS \
46 if (!CheckEglNoErrors()) \
48 SysAssertf(false, "Execution stopped on CheckEglNoErrors fail"); \
52 #define GL_ASSERT_NOERRORS \
54 if (!CheckGlNoErrors()) \
56 SysLog(NID_UI_EFFECT, "%s::%d", __PRETTY_FUNCTION__, __LINE__);\
57 SysAssertf(false, "Execution stopped on CheckGlNoErrors fail"); \
60 #else // #ifdef _DEBUG
61 #define EGL_ASSERT_NOERRORS
62 #define GL_ASSERT_NOERRORS
65 } } } } // Tizen::Ui::Effects::_EffectRenderer
67 #endif //_FUI_EFFECTS_INTERNAL_RENDERER_LOG_H_*/