Commit 6ba4edae authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

fix formatting in wmc_auto.h

parent 3d79bb39
Loading
Loading
Loading
Loading
Loading
+13 −7
Original line number Diff line number Diff line
@@ -762,7 +762,8 @@ static int wmc_flag_ = 0;
#endif

/* Flow Control keywords */
#define if_ OP_COUNT_WRAPPER2_( BRANCH_( 1 ) ) if
#define if_ OP_COUNT_WRAPPER2_( BRANCH_( 1 ) ) \
if
#define for_    OP_COUNT_WRAPPER2_(  LOOP_(1)) for
#define while_( c ) \
    while           \
@@ -775,12 +776,17 @@ static int wmc_flag_ = 0;
    }             \
    while

#define goto_     OP_COUNT_WRAPPER2_( BRANCH_( 1 ) ) goto
#define break_    OP_COUNT_WRAPPER2_( BRANCH_( 1 ) ) break
#define continue_ OP_COUNT_WRAPPER2_( BRANCH_( 1 ) ) continue
#define return_   OP_COUNT_WRAPPER2_( ( wmc_flag_ = stack_tree_level_, STACK_DEPTH_FCT_RETURN ) ) return

#define switch_    OP_COUNT_WRAPPER2_( ( BRANCH_( 1 ), wmc_flag_ = 1 ) ) switch
#define goto_ OP_COUNT_WRAPPER2_( BRANCH_( 1 ) ) \
goto
#define break_ OP_COUNT_WRAPPER2_( BRANCH_( 1 ) ) \
break
#define continue_ OP_COUNT_WRAPPER2_( BRANCH_( 1 ) ) \
continue
#define return_ OP_COUNT_WRAPPER2_( ( wmc_flag_ = stack_tree_level_, STACK_DEPTH_FCT_RETURN ) ) \
return

#define switch_ OP_COUNT_WRAPPER2_( ( BRANCH_( 1 ), wmc_flag_ = 1 ) ) \
switch
#define cost_( n ) OP_COUNT_WRAPPER2_( wmc_flag_ ? ( ADD_( n ), BRANCH_( n ), wmc_flag_ = 0 ) : 0 );

#ifdef WMOPS