| 125 | } |
| 126 | |
| 127 | int asCReader::Error(const char *msg) |
| 128 | { |
| 129 | // Don't write if it has already been reported an error earlier |
| 130 | if( !error ) |
| 131 | { |
| 132 | asCString str; |
| 133 | str.Format(msg, bytesRead); |
| 134 | engine->WriteMessage("", 0, 0, asMSGTYPE_ERROR, str.AddressOf()); |
| 135 | error = true; |
| 136 | } |
| 137 | |
| 138 | return asERROR; |
| 139 | } |
| 140 | |
| 141 | int asCReader::ReadInner() |
| 142 | { |
no test coverage detected