Prevent infinitely recursive macros (bug #20126)

We simply use the system already in place for file inclusions, and bump the
limit up to 100 to appease compulsive macro users.