Menu

#208 help in debugging complex macros

open
v1ctor
compiler (117)
2012-10-10
2009-06-04
No

When you write a complex set of macros that may go many levels deep, an error message on the outer line starting the macro expansion is not helpful at all. The error may be 10 levels deep, 1000 lines of expansion later.

A file containing every expanded macro line in the entire sequence would make it a lot easier to debug. And if the error could actually point to the line in error or at least print the actual expanded line in error would make the process a lot easier.

While you are at it. At the end of compilation, a complete list of all macros with their actual text would be very very nice. To make sure the macros were correctly generated in cases where macros are being built on the fly.

Discussion


Log in to post a comment.