Changeset 342


Ignore:
Timestamp:
03/24/15 20:59:52 (5 years ago)
Author:
Maciej Komosinski
Message:

Param loader passes the true filename to script sources (@file name) for more precise location in error messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/param/param.cpp

    r334 r342  
    429429                                        unquoteTilde(s);
    430430                                        if (linenum && (flags(i)&PARAM_LINECOMMENT))
    431                                                 s = SString::sprintf("@line %d\n", *linenum + 1) + s;
     431                                                s = SString::sprintf("@file %s\n@line %d\n", f->VgetPath(), *linenum + 1) + s;
    432432                                        set(i, (const char*)s);
    433433                                        if (linenum)
Note: See TracChangeset for help on using the changeset viewer.