MCPcopy Create free account
hub / github.com/ZDoom/gzdoom / CheckForLineSpecial

Function CheckForLineSpecial

src/scripting/backend/codegen_doom.cpp:213–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213static FxExpression* CheckForLineSpecial(FxIdentifier* func, FCompileContext& ctx)
214{
215 auto& ScriptPosition = func->ScriptPosition;
216
217 // and line specials
218 int num;
219 if ((num = P_FindLineSpecial(func->Identifier.GetChars(), nullptr, nullptr)))
220 {
221 ScriptPosition.Message(MSG_DEBUGLOG, "Resolving name '%s' as line special %d\n", func->Identifier.GetChars(), num);
222 auto newex = new FxConstant(num, ScriptPosition);
223 delete func;
224 return newex? newex->Resolve(ctx) : nullptr;
225 }
226 return func;
227}
228
229//==========================================================================
230//

Callers

nothing calls this directly

Calls 4

P_FindLineSpecialFunction · 0.85
MessageMethod · 0.80
GetCharsMethod · 0.45
ResolveMethod · 0.45

Tested by

no test coverage detected