include/SDL_assert.h
changeset 3654 336f3df1578d
parent 3653 1cd9f7117b98
child 3655 1cc7f0143c12
--- a/include/SDL_assert.h	Wed Jan 13 07:52:53 2010 +0000
+++ b/include/SDL_assert.h	Wed Jan 13 08:06:32 2010 +0000
@@ -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