Commit 3eebd11c authored by malenov's avatar malenov
Browse files

reset func_name_where_last_call_to_else_occurred to empty string in each IF statement

parent 1b6555a9
Loading
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -197,7 +197,12 @@ static __inline void incrIf( void )
     */
#ifdef FIX_1054_IF_ELSE_CMPLX
    if ( ( strncmp( func_name, func_name_where_last_call_to_else_occurred, MAX_FUNCTION_NAME_LENGTH ) != 0 ) || ( TotalWeightedOperation() != funcid_total_wmops_at_last_call_to_else ) )
    {

        multiCounter[currCounter].If++;
    }

    func_name_where_last_call_to_else_occurred[0] = '\0';
#else
    if ( ( currCounter != funcId_where_last_call_to_else_occurred ) || ( TotalWeightedOperation() != funcid_total_wmops_at_last_call_to_else ) || ( call_occurred == 1 ) )
        multiCounter[currCounter].If++;