Currently, any errors during macro expansion or that occur due to code produced by a macro expansion are reported to occur at the site of the original macro call. Ideally, we could make SourceOffset more complex and able to handle macro stacks. So the error could actually say "error occurred at line X, during macro expansion of macro Y at line Z, during macro expansion of ..." and so on.
Currently, any errors during macro expansion or that occur due to code produced by a macro expansion are reported to occur at the site of the original macro call. Ideally, we could make
SourceOffset
more complex and able to handle macro stacks. So the error could actually say "error occurred at line X, during macro expansion of macro Y at line Z, during macro expansion of ..." and so on.