| 114 | } |
| 115 | |
| 116 | void GameState::TypeError(GameType exp, GameType was, const char* name) const |
| 117 | { |
| 118 | char expName[512]; |
| 119 | char wasName[512]; |
| 120 | snprintf(expName, sizeof(expName), "%s", (const char*)GetTypeName(exp)); |
| 121 | snprintf(wasName, sizeof(wasName), "%s", (const char*)GetTypeName(was)); |
| 122 | SetError(EvalType, wasName, expName); |
| 123 | if (name) |
| 124 | { |
| 125 | // append name before error message |
| 126 | RString withName = name + RString(": ") + _e->_errorText; |
| 127 | _e->_errorText = withName; |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | void GameState::vynech() const |
| 132 | { |
no test coverage detected