mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
update for GNUSTEP_WITH_ASAN
This commit is contained in:
parent
9cdb4f98ba
commit
7ac6931039
1 changed files with 4 additions and 1 deletions
|
@ -1203,7 +1203,10 @@ static Class GSInlineArrayClass;
|
|||
* that produces false positives for items held in an inline array, so
|
||||
* we use the less efficient class in that case.
|
||||
*/
|
||||
#if defined(GS_WITH_ASAN)
|
||||
#if !defined(GNUSTEP_WITH_ASAN)
|
||||
#define GNUSTEP_WITH_ASAN 0
|
||||
#endif
|
||||
#if GNUSTEP_WITH_ASAN
|
||||
self = (id)NSAllocateObject(GSArrayClass, 0, z);
|
||||
#else
|
||||
self = (id)NSAllocateObject(GSInlineArrayClass, sizeof(id)*count, z);
|
||||
|
|
Loading…
Reference in a new issue