| 211 | } |
| 212 | |
| 213 | static 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 | // |
nothing calls this directly
no test coverage detected