redefine – Conditional macro, etc., definitions
Defines commands \newdef, \newgdef and \newlet that warn the user if a command is redefined using them (if operating under LaTeX, \newcommand is similarly modified). In addition \newif, \newbox, \newcount, \newdimen, \newtoks are modified to detect an error if a conditional or register name is reused.
Maybe you are interested in the following packages as well.
- defstring: Define macros as verbatim macros
- laps: Zero-width boxes for annotations, etc
- hackalloc: Make allocations local
- balancedquotes: Code balanced quotes according to document language