Test.h
changeset 22 a9da6c5d3f7c
parent 13 c59dec088990
child 33 d52f6b0d94be
     1.1 --- a/Test.h	Sun Jun 01 14:01:44 2008 -0700
     1.2 +++ b/Test.h	Sat Apr 04 20:53:53 2009 -0700
     1.3 @@ -82,6 +82,7 @@
     1.4                                      CAssert(_val==_expected, @"Unexpected value for %s: %@ (expected %@)", #VAL,$object(_val),$object(_expected)); \
     1.5                                  }while(0)
     1.6  
     1.7 +#define AssertAbstractMethod()  _AssertAbstractMethodFailed(self,_cmd);
     1.8  
     1.9  // Nasty internals ...
    1.10  #if DEBUG
    1.11 @@ -92,3 +93,4 @@
    1.12  #endif DEBUG
    1.13  void _AssertFailed( id rcvr, const void *selOrFn, const char *sourceFile, int sourceLine,
    1.14                     const char *condString, NSString *message, ... ) __attribute__((noreturn));
    1.15 +void _AssertAbstractMethodFailed( id rcvr, SEL cmd) __attribute__((noreturn));