poormock.cpp File Reference

#include "interface.h"
#include "consumer.h"
#include <iostream>
#include <cstdlib>
Include dependency graph for poormock.cpp:

Go to the source code of this file.

Classes

class  PoorMock

Defines

#define ASSERTER(x)
 Quick-n-dirty asserter.

Functions

int main (int, char **)

Define Documentation

#define ASSERTER (  ) 
Value:
if (!(x) ) { \
     MOCKPP_STD_NS::cout << MOCKPP_STD_NS::endl \
               << "Error occured.\n" << #x << MOCKPP_STD_NS::endl \
               << MOCKPP_STD_NS::endl \
               << MOCKPP_STD_NS::flush; \
     exit(1); \
   }

Quick-n-dirty asserter.

If the condition fails the condition is printed and the application terminates immediately.

Definition at line 28 of file poormock.cpp.

Referenced by main().


Function Documentation

int main ( int  ,
char **   
)
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines

Generated on Tue Jan 5 18:03:33 2010 for mockpp-tutorial by  doxygen 1.6.1