mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Turn off assertions for better performance
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4117 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4dc88aa719
commit
4add92757a
1 changed files with 4 additions and 4 deletions
|
@ -30,10 +30,10 @@
|
|||
#endif
|
||||
|
||||
/* To turn assertions on, comment out the following four lines */
|
||||
//#ifndef NS_BLOCK_ASSERTIONS
|
||||
//#define NS_BLOCK_ASSERTIONS 1
|
||||
//#define FAST_ARRAY_BLOCKED_ASSERTIONS 1
|
||||
//#endif
|
||||
#ifndef NS_BLOCK_ASSERTIONS
|
||||
#define NS_BLOCK_ASSERTIONS 1
|
||||
#define FAST_ARRAY_BLOCKED_ASSERTIONS 1
|
||||
#endif
|
||||
|
||||
#define FAST_ARRAY_CHECK NSCAssert(array->count <= array->cap && array->old <= array->cap && array->old >= 1, NSInternalInconsistencyException)
|
||||
|
||||
|
|
Loading…
Reference in a new issue