| 51 | |
| 52 | #ifdef DEV_BUILD |
| 53 | void CheckStr(const AbstractString& check, const char* want, int line) |
| 54 | { |
| 55 | if (strlen(check.c_str()) != check.length()) { |
| 56 | printf("Length error at %d\n\n", line); |
| 57 | } |
| 58 | if (strcmp(check.c_str(), want)) { |
| 59 | printf("Wanted >%s<,\n got >%s< at %d\n\n", want, check.c_str(), line); |
| 60 | } |
| 61 | } |
| 62 | #define validate(a, b) CheckStr(a, b, __LINE__) |
| 63 | #else |
| 64 | #define validate(a, b) |