BWAPI
Defines | Functions | Variables
trunk/bwapi/TestAIModule/Source/BWAssert.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define BWAssert(C)
#define BWAssertF(C, FailBlock)
#define BWAssertErr(C, E)

Functions

void log (const char *format,...)

Variables

int assert_success_count
int assert_fail_count

Define Documentation

#define BWAssert (   C)
Value:
{\
  if (!(C))\
  {\
    log("Assert failed @%s:%u (%s)",__FILE__,__LINE__,Broodwar->getLastError().toString().c_str());\
    assert_fail_count++;\
  }\
  else\
  {\
    assert_success_count++;\
  }\
}
#define BWAssertErr (   C,
 
)
Value:
{\
  if (!(C))\
  {\
    log("Assert failed @%s:%u (%s)",__FILE__,__LINE__,E);\
    assert_fail_count++;\
  }\
  else\
  {\
    assert_success_count++;\
  }\
}
#define BWAssertF (   C,
  FailBlock 
)
Value:
{\
  if (!(C))\
  {\
    log("Assert failed @%s:%u (%s)",__FILE__,__LINE__,Broodwar->getLastError().toString().c_str());\
    assert_fail_count++;\
    {FailBlock}\
  }\
  else\
  {\
    assert_success_count++;\
  }\
}

Function Documentation

void log ( const char *  format,
  ... 
)

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines