Skip to content

Commit ec97ad8

Browse files
committed
Why do these emit more code?
1 parent 77652d0 commit ec97ad8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Marlin/src/core/serial.h

+20
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,26 @@ void SERIAL_ECHO(T arg1, Args ... args) { SERIAL_ECHO(arg1); SERIAL_ECHO(args ..
184184
template <typename T, typename ... Args>
185185
void SERIAL_ECHOLN(T arg1, Args ... args) { SERIAL_ECHO(arg1); SERIAL_ECHO(args ...); SERIAL_EOL(); }
186186

187+
// // Print a single PROGMEM string
188+
// template <typename T>
189+
// void SERIAL_ECHOPGM_P(T pstr) { SERIAL_ECHO_P(pstr); }
190+
// // Print a PROGMEM string, plus an arg, plus more
191+
// template <typename T>
192+
// void SERIAL_ECHOPGM_P(PGM_P pstr, T arg1) { SERIAL_ECHO_P(pstr); SERIAL_ECHO(arg1); }
193+
// // Print a PROGMEM string, plus an arg, plus more
194+
// template <typename T, typename ... Args>
195+
// void SERIAL_ECHOPGM_P(PGM_P pstr, T arg1, Args ... args) { SERIAL_ECHO_P(pstr); SERIAL_ECHO(arg1); SERIAL_ECHOPGM_P(args ...); }
196+
197+
// // Print a single PROGMEM string
198+
// template <typename T>
199+
// void SERIAL_ECHOLNPGM_P(T pstr) { SERIAL_ECHOLN_P(pstr); }
200+
// // Print a PROGMEM string, plus an arg, plus more
201+
// template <typename T>
202+
// void SERIAL_ECHOLNPGM_P(PGM_P pstr, T arg1) { SERIAL_ECHO_P(pstr); SERIAL_ECHO(arg1); SERIAL_EOL(); }
203+
// // Print a PROGMEM string, plus an arg, plus more
204+
// template <typename T, typename ... Args>
205+
// void SERIAL_ECHOLNPGM_P(PGM_P pstr, T arg1, Args ... args) { SERIAL_ECHO_P(pstr); SERIAL_ECHO(arg1); SERIAL_ECHOLNPGM_P(args ...); }
206+
187207
//
188208
// SERIAL_ECHOPGM... macros are used to output string-value pairs, wrapping
189209
// all the odd loose string elements as PROGMEM strings.

0 commit comments

Comments
 (0)