Add the NSDebugEnabled boolean

This commit is contained in:
Steven R. Baker 2021-11-30 21:14:29 +00:00 committed by Graham Lee
parent 0950bed43b
commit 7525d942b7
3 changed files with 8 additions and 1 deletions

View file

@ -104,6 +104,13 @@ extern "C" {
* GSDebugAllocationListRecordedObjects()
* GSDebugAllocationTagRecordedObject()
*/
/**
* A global variable that you can use to enable debug behaviour in
* your program.
*/
extern BOOL NSDebugEnabled;
#ifndef NDEBUG
/**

View file

@ -136,7 +136,6 @@ NSDebug:
NSObjectInternalRefIncrementedEvent
NSObjectInternalRefDecrementedEvent
NSDebugEnabled
NSKeepAllocationStatistics
NSIsFreedObject()

View file

@ -92,6 +92,7 @@ static table_entry* the_table = 0;
static BOOL debug_allocation = NO;
static BOOL debug_byte_size = NO;
BOOL NSDebugEnabled = NO;
static gs_mutex_t uniqueLock;