Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.h

    r44a81853 r907eccb  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Jan 17 16:55:40 2017
    13 // Update Count     : 48
     12// Last Modified On : Tue Dec 13 13:51:53 2016
     13// Update Count     : 39
    1414//
    1515
     
    114114                void extension( Declaration *decl );
    115115          private:
     116
    116117                Indenter indent;
    117118                int cur_indent;
     
    130131        template< class Iterator >
    131132        void CodeGenerator::genCommaList( Iterator begin, Iterator end ) {
    132           if ( begin == end ) return;
     133                if ( begin == end ) return;
     134
    133135                for ( ;; ) {
    134136                        (*begin++)->accept( *this );
    135                   if ( begin == end ) break;
    136                         output << ", ";                                                         // separator
     137                        if ( begin == end ) return;
     138                        output << ", ";
    137139                } // for
    138         } // genCommaList
     140        }
    139141
    140142        inline bool doSemicolon( Declaration* decl ) {
     
    143145                } // if
    144146                return true;
    145         } // doSemicolon
     147        }
    146148
    147149        /// returns C-compatible name of declaration
Note: See TracChangeset for help on using the changeset viewer.