Write a string to the console
| 221 | |
| 222 | // Write a string to the console |
| 223 | void Console::out(const char* string) |
| 224 | { |
| 225 | advance(); |
| 226 | |
| 227 | if(string) |
| 228 | { |
| 229 | size_t Length = strlen(string); |
| 230 | if(Length>=CONSOLE_MAX_COL-1) |
| 231 | { |
| 232 | PX_ASSERT(0); |
| 233 | strcpy(mBuffer[mNewline].mText, "CONSOLE LINE TOO LONG!"); |
| 234 | } |
| 235 | else |
| 236 | strcpy(mBuffer[mNewline].mText, string); |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | // Process an instruction |
| 241 | // called after the user hits enter |
no test coverage detected