MCPcopy Create free account
hub / github.com/ZDoom/Raze / ScriptMessage

Method ScriptMessage

source/common/engine/sc_man.cpp:1110–1129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1108//==========================================================================
1109
1110void 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//

Callers 15

LoadCustomInfoFromScriptFunction · 0.80
ParseSpawnClassesMethod · 0.80
ParseBreakWallMethod · 0.80
ParseBreakCeilingMethod · 0.80
ParseSwitchesMethod · 0.80
ParseTextureFlagsMethod · 0.80
ParseSurfaceTypesMethod · 0.80
ParseClusterMethod · 0.80
ParseMapDefinitionMethod · 0.80
ParseEpisodeInfoMethod · 0.80
ParseCutsceneInfoMethod · 0.80
ParseGameInfoMethod · 0.80

Calls 3

PrintfFunction · 0.85
VFormatMethod · 0.80
GetCharsMethod · 0.45

Tested by

no test coverage detected