MCPcopy Create free account
hub / github.com/MarlinFirmware/Marlin / is_command

Method is_command

Marlin/src/gcode/parser.h:245–245  ·  view source on GitHub ↗

Test whether the parsed command matches the input

Source from the content-addressed store, hash-verified

243
244 // Test whether the parsed command matches the input
245 static bool is_command(const char ltr, const uint16_t num) { return command_letter == ltr && codenum == num; }
246
247 // The code value pointer was set
248 FORCE_INLINE static bool has_value() { return !!value_ptr; }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected