Summary: | Macros defined in one file and called from another with errors in their definitions | ||
---|---|---|---|
Product: | RMAC | Reporter: | ggn <ggnkua> |
Component: | Core | Assignee: | Shamus Hammons <jlhamm> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jlhamm |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | Ugh! |
Description
ggn
2020-09-02 14:48:26 CDT
Created attachment 148 [details]
Ugh!
So actually this is a continuation of bug #50 - tomb raidering! So after speaking to a couple of people about this, we agreed that what should happen when a macro errors out is to report the erroneous line of the macro, as well as the caller site. This can help tremendously if one is trying to suss out errors from invalid macro invocation. Plus, you can never have too much helping info, right? :) I'm really not very confident in submitting a new patch because my dev folder is a bit messy, but if the above patch is applied and the sprintf replaced with the following, we should be fine. sprintf(buf1, "%s %d: Error: %s\nCalled from: %s %d\n", filename, cur_inobj->inobj.imacro->im_macro->lineList->lineno, buf, curfname, curlineno); This really isn't all that bad, considering. :-) Thanks for the patch! |