IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10818


Ignore:
Timestamp:
Dec 21, 2006, 10:04:05 AM (20 years ago)
Author:
magnier
Message:

added "note" macro to pstap.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/pstap/src/pstap.h

    r10767 r10818  
    1414           # ifdef __GNUC__
    1515
    16            // use to test the value of a float
    17            # define ok_float(VALUE,EXPECT,COMMENT, ...)\
    18            ok((fabsf((VALUE)-(EXPECT)) < FLT_EPSILON), COMMENT, ## __VA_ARGS__);
     16           // write a comment which is counted as a test (and swallowed by prove)
     17           # define note(A, ...) _gen_result(1, __func__, __FILE__, __LINE__, A, ## __VA_ARGS__);
     18
     19// use to test the value of a float
     20# define ok_float(VALUE,EXPECT,COMMENT, ...)\
     21ok((fabsf((VALUE)-(EXPECT)) < FLT_EPSILON), COMMENT, ## __VA_ARGS__);
     22
     23// write a comment which is counted as a test (and swallowed by prove)
     24# define note(A, ...) _gen_result(1, __func__, __FILE__, __LINE__, A, ## __VA_ARGS__);
    1925
    2026// use to test the value of a double
     
    6571
    6672#elif __STDC_VERSION__ >= 199901L /* __GNUC__ */
     73
     74// write a comment which is counted as a test (and swallowed by prove)
     75# define note(A, ...) _gen_result(1, __func__, __FILE__, __LINE__, A, ...);
    6776
    6877// use to test the value of a float
Note: See TracChangeset for help on using the changeset viewer.