| 1108 | //========================================================================== |
| 1109 | |
| 1110 | void FScanner::ScriptMessage (const char *message, ...) |
| 1111 | { |
| 1112 | FString composed; |
| 1113 | |
| 1114 | if (message == NULL) |
| 1115 | { |
| 1116 | composed = "Bad syntax."; |
| 1117 | } |
| 1118 | else |
| 1119 | { |
| 1120 | va_list arglist; |
| 1121 | va_start (arglist, message); |
| 1122 | composed.VFormat (message, arglist); |
| 1123 | va_end (arglist); |
| 1124 | } |
| 1125 | |
| 1126 | ParseError = true; |
| 1127 | Printf (TEXTCOLOR_RED "%sScript error, \"%s\"" TEXTCOLOR_RED " line %d:\n" TEXTCOLOR_RED "%s\n", PrependMessage.GetChars(), ScriptName.GetChars(), |
| 1128 | AlreadyGot? AlreadyGotLine : Line, composed.GetChars()); |
| 1129 | } |
| 1130 | |
| 1131 | //========================================================================== |
| 1132 | // |
no test coverage detected