Changeset 44 for trunk/orca/ovalue.c

Show
Ignore:
Timestamp:
02/12/06 15:46:49 (3 years ago)
Author:
krobillard
Message:

Added orIfTrue/orIfFalse macros.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/orca/ovalue.c

    r42 r44  
    14881488void orIfNative( OValue* a1 ) 
    14891489{ 
    1490     if( a1->type != OT_NONE ) 
    1491     { 
    1492         if( (a1->type != OT_LOGIC) || (a1->integer != 0)  ) 
    1493         { 
    1494             OValue* a2 = a1 + 1; 
    1495             orEvalBlock( orBLOCK( a2 ), a2->series.it ); 
    1496             return; 
    1497         } 
     1490    if( orIfTrue(a1) ) 
     1491    { 
     1492        OValue* a2 = a1 + 1; 
     1493        orEvalBlock( orBLOCK( a2 ), a2->series.it ); 
     1494        return; 
    14981495    } 
    14991496    orResultNONE; 
     
    15031500void orUnlessNative( OValue* a1 ) 
    15041501{ 
    1505     if( (a1->type == OT_NONE) || 
    1506         ((a1->type == OT_LOGIC) && (a1->integer == 0)) ) 
     1502    if( orIfFalse(a1) ) 
    15071503    { 
    15081504        OValue* a2 = a1 + 1;