defstring – Define macros as verbatim macros
The command \defstring defines its first argument (a control sequence name) as the content of its second argument, with category code ‘other’, with surrounding braces added.
Maybe you are interested in the following packages as well.
- inlinedef: Inline expansions within definitions
- letltxmacro: Let assignment for LaTeX macros
- xfp: Interface to the LaTeX3 floating point unit
- xparse: A generic document command parser