Content originally posted in LPCWare by Brinkand on Thu Oct 07 02:25:16 MST 2010 I would like to be able to add code line number and build dates into my debug output, which I output on the UART of an LPC111x using sprintf.
I included __LINE__ and __TIMESTAMP__ in sprintf arguments and #warning, but they are not recognized.
Content originally posted in LPCWare by TheFallGuy on Thu Oct 07 03:48:09 MST 2010 You could also use simple concatenation (and thus remove the need to sprintf)