BWAPI
Defines
trunk/bwapi/TestAIModule/Source/AttackUnitTest.cpp File Reference
#include "AttackUnitTest.h"
#include "BWAssert.h"
Include dependency graph for AttackUnitTest.cpp:

Defines

#define FAILTEST(C)

Define Documentation

#define FAILTEST (   C)
Value:
{\
  if (!(C))\
  {\
  log("Assert failed @%s:%u %s[%s:%s]->%s[%s] (%s)",__FILE__,__LINE__, unit ? unit->getType().getName().c_str() : "NULL", unitType.getName().c_str(), unit ? unit->getOrder().getName().c_str() : "null", target ? target->getType().getName().c_str() : "NULL", targetType.getName().c_str(), Broodwar->getLastError().toString().c_str());\
    assert_fail_count++;\
    fail = true;\
    return;\
  }\
  else\
  {\
    assert_success_count++;\
  }\
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines