diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-04-09 06:55:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-04-09 06:55:46 +0300 |
commit | 1b72ad0c3d57e4c19a90f27106e4ffd435c0e04e (patch) | |
tree | 50ec258b02e3bee5ec726d9983c462c691002669 /intern | |
parent | 12661de0875110abb63db3ac27f71bf7d926a380 (diff) |
GHOST: don't instantiate assert arg
When debugging is disabled, function calls in an assert should never run.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_Debug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_Debug.h b/intern/ghost/intern/GHOST_Debug.h index c99f3dfac95..db49627b378 100644 --- a/intern/ghost/intern/GHOST_Debug.h +++ b/intern/ghost/intern/GHOST_Debug.h @@ -80,7 +80,7 @@ } \ } (void)0 #else // GHOST_DEBUG -# define GHOST_ASSERT(x, info) (void)(x) +# define GHOST_ASSERT(x, info) ((void)0) #endif // GHOST_DEBUG #endif // __GHOST_DEBUG_H__ |