Ignore:
Timestamp:
Mar 10, 2019, 10:49:16 PM (3 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
6fd1955
Parents:
f910df5
Message:

remove path from generating file name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/BasicTypes-gen.cc

    rf910df5 rc2fe922  
    260260
    261261        #define STARTMK "// GENERATED START, DO NOT EDIT"
    262         #define BYMK "// GENERATED BY " __FILE__
    263262        #define ENDMK "// GENERATED END"
     263        string BYMK( __FILE__ );
     264        string::size_type posn = BYMK.find_last_of( "/" );
     265        if ( posn != string::npos ) BYMK.erase( 0, posn - 1); // remove directories
     266        BYMK = "// GENERATED BY " + BYMK;
     267
    264268        fstream file;
    265269        stringstream buffer, code;
Note: See TracChangeset for help on using the changeset viewer.