Skip to content

Instantly share code, notes, and snippets.

@Machx
Created January 26, 2010 17:12
Show Gist options
  • Save Machx/287009 to your computer and use it in GitHub Desktop.
Save Machx/287009 to your computer and use it in GitHub Desktop.
#ifdef kAPP_DEBUG_MODE
# define CWAssert(cond,desc) NSAssert(cond,desc)
# define CWAssert1(cond,desc,a1) NSAssert1(cond,desc,a1)
# define CWAssert2(cond,desc,a1,a2) NSAssert2(cond,desc,a1,a2)
# define CWAssert3(cond,desc,a1,a2,a3) NSAssert3(cond,desc,a1,a2,a3)
# define CWAssert4(cond,desc,a1,a2,a3,a4) NSAssert4(cond,desc,a1,a2,a3,a4)
# define CWAssert5(cond,desc,a1,a2,a3,a4,a5) NSAssert5(cond,desc,a1,a2,a3,a4,a5)
#else
# define CWAssert(...) /**/
# define CWAssert1(...) /**/
# define CWAssert2(...) /**/
# define CWAssert3(...) /**/
# define CWAssert4(...) /**/
# define CWAssert5(...) /**/
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment