Allow configure to override assertion settings, but by default this comes from the build optimization level.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404405
This commit is contained in:
Sam Lantinga 2010-01-13 08:06:32 +00:00
parent 34ea846ca1
commit 803375d590
9 changed files with 25 additions and 45 deletions

View file

@ -25,8 +25,10 @@
#define _SDL_assert_h
#ifndef SDL_ASSERT_LEVEL
#if defined(_DEBUG) || defined(DEBUG) || \
(defined(__GNUC__) && !defined(__OPTIMIZE__))
#ifdef SDL_DEFAULT_ASSERT_LEVEL
#define SDL_ASSERT_LEVEL SDL_DEFAULT_ASSERT_LEVEL
#elif defined(_DEBUG) || defined(DEBUG) || \
(defined(__GNUC__) && !defined(__OPTIMIZE__))
#define SDL_ASSERT_LEVEL 2
#else
#define SDL_ASSERT_LEVEL 1