Search code examples
ccompiler-flags

What's the "DNS_BLOCK_ASSERTIONS" (C compiler flag)?


What's the "DNS_BLOCK_ASSERTIONS" (C compiler flag)?


Solution

  • The NS_BLOCK_ASSERTIONS macro (no "D") suppresses the checks performed by NSAssert. You supply it to the compiler using -DNS_BLOCK_ASSERTIONS (see the comments for an explanation of the "D").