BWAPI
|
Defines | |
#define | FAILTEST(C) |
#define FAILTEST | ( | C | ) |
{\ 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++;\ }\ }