Changeset c2fe922


Ignore:
Timestamp:
Mar 10, 2019, 10:49:16 PM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
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.