MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / CheckForMixedSpacesAndTabs

Method CheckForMixedSpacesAndTabs

src/GCodes/GCodeBuffer/StringParser.cpp:447–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445}
446
447void StringParser::CheckForMixedSpacesAndTabs() noexcept
448{
449 if (seenMetaCommand && !warnedAboutMixedSpacesAndTabs && seenLeadingSpace && seenLeadingTab)
450 {
451 reprap.GetPlatform().MessageF(AddWarning(gb.GetResponseMessageType()),
452 "both space and tab characters used to indent blocks at/before line %" PRIu32 "\n", gb.GetLineNumber());
453 warnedAboutMixedSpacesAndTabs = true;
454 }
455}
456
457// Check for and process a conditional GCode language command returning true if we found one, false if it's a regular line of GCode that we need to process
458// If we just finished skipping an if- or elif-block when the condition was false then 'skippedBlockType' is the type of that block, else it is BlockType::plain

Callers

nothing calls this directly

Calls 4

AddWarningFunction · 0.85
GetLineNumberMethod · 0.80
MessageFMethod · 0.45

Tested by

no test coverage detected