Stringification (#)

The stringification operators makes a quoted string token of a parameter to a function-type macro.

Example

#define MY_IDENT(X) .db #X, '\n', 0

When called like this

MY_IDENT(FooFirmwareRev1)

will expand to

.db "FooFirmwareRev1", '\n', 0

Notes

  1. 1.Stringification can only be used with parameters to function-type macros.
  2. 2.The parameter's value will be used literally, i.e. it will not be expanded before stringification.