Skip to content

NSDebugEnabled is missing

Nat! edited this page Apr 7, 2017 · 1 revision

There is no global NSDebugEnabled variable anymore. mulle-objc generally tries to avoid use of global variables. Often you can compile code, by using this hackish code:

#ifdef __MULLE_OBJC__
extern int   _ns_rootconfiguration_is_debug_enabled( void);
#define NSDebugEnabled   _ns_rootconfiguration_is_debug_enabled()
#endif

This doesn't work for setting NSDebugEnabled=YES. You can't do this in mulle-objc.