Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorMitchell Stokes <mogurijin@gmail.com>2013-09-05 01:57:14 +0400
committerMitchell Stokes <mogurijin@gmail.com>2013-09-05 01:57:14 +0400
commit42deb9558314086fbe9ed9300e5ead6b593fd776 (patch)
treee721ae96d96cb9f41427fad5324fe9412eedb05a /intern
parentcdabc891e2f98c7f2f8c724dbd6979fd36db5a25 (diff)
Ghost_SDL: Fixing the DEF_CURSOR macro so it works in release builds.
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_WindowSDL.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/intern/ghost/intern/GHOST_WindowSDL.cpp b/intern/ghost/intern/GHOST_WindowSDL.cpp
index 55f66ed08cc..4a1086144f4 100644
--- a/intern/ghost/intern/GHOST_WindowSDL.cpp
+++ b/intern/ghost/intern/GHOST_WindowSDL.cpp
@@ -535,16 +535,16 @@ static void sdl_cursor_init(void)
{
#define DEF_CURSOR(name, ind) \
- assert( \
- ( \
- sdl_std_cursor_array[(int)ind] = \
- sdl_ghost_CreateCursor(sdl_std_cursor_##name, \
- sdl_std_cursor_mask_##name, \
- sdl_std_cursor_WIDTH_##name, \
- sdl_std_cursor_HEIGHT_##name, \
- (sdl_std_cursor_WIDTH_##name + (sdl_std_cursor_HOT_X_##name)) - 1, \
- (sdl_std_cursor_HEIGHT_##name + (sdl_std_cursor_HOT_Y_##name)) - 1) \
- ) != NULL) \
+ { \
+ sdl_std_cursor_array[(int)ind] = \
+ sdl_ghost_CreateCursor(sdl_std_cursor_##name, \
+ sdl_std_cursor_mask_##name, \
+ sdl_std_cursor_WIDTH_##name, \
+ sdl_std_cursor_HEIGHT_##name, \
+ (sdl_std_cursor_WIDTH_##name + (sdl_std_cursor_HOT_X_##name)) - 1, \
+ (sdl_std_cursor_HEIGHT_##name + (sdl_std_cursor_HOT_Y_##name)) - 1); \
+ assert(sdl_std_cursor_array[(int)ind] != NULL); \
+ } (void)0
DEF_CURSOR(left_ptr, GHOST_kStandardCursorDefault);