Objasm throwback
Colin (478) 2433 posts |
Any chance of making Objasm issue a throwback to the right line when macros are used? At present the error output from objasm is like this:
and the throwback entry is
and it takes you to line 158 but you want it to take you to line 107. |
nemo (145) 2546 posts |
Aasm’s the same. |
Steve Pampling (1551) 8170 posts |
Maybe the assumption is that the macro is correct and therefore you want to hang around in the code that called the macro to see what you didn’t pass in correctly? |
Colin (478) 2433 posts |
If that was useful all errors in functions would be on the line where the function is called. |
Steve Pampling (1551) 8170 posts |
I was just pointing out that if you assume the macro has no faults then the only fault in the whole package must be that an incorrect parameter was passed in or omitted. To use your example if you know the function is fine it was the way that you used it that caused the problem. Objasm is at least telling you which bit of the macro you aren’t using as the author expected and leaving you nicely placed in the calling code to step back a bit to where something should have been defined. |