Commit de41ddca authored by Patrik Stridvall's avatar Patrik Stridvall Committed by Alexandre Julliard

Added {ok,trace}_ macros to take explicit file and line number.

parent 70bb4781
......@@ -44,19 +44,19 @@ extern int winetest_get_mainargs( char*** pargv );
extern int winetest_ok( int condition, const char *msg, ... ) __attribute__((format (printf,2,3) ));
extern void winetest_trace( const char *msg, ... ) __attribute__((format (printf,1,2)));
#define ok(cond,args...) (winetest_set_ok_location(__FILE__, __LINE__), winetest_ok((cond),args))
#define trace(args...) (winetest_set_trace_location(__FILE__, __LINE__), winetest_trace(args))
#else /* __GNUC__ */
extern int winetest_ok( int condition, const char *msg, ... );
extern void winetest_trace( const char *msg, ... );
#define ok (winetest_set_ok_location(__FILE__, __LINE__), 0) ? 0 : winetest_ok
#define trace (winetest_set_trace_location(__FILE__, __LINE__), 0) ? (void)0 : winetest_trace
#endif /* __GNUC__ */
#define ok_(file, line) (winetest_set_ok_location(file, line), 0) ? 0 : winetest_ok
#define trace_(file, line) (winetest_set_trace_location(file, line), 0) ? (void)0 : winetest_trace
#define ok ok_(__FILE__, __LINE__)
#define trace trace_(__FILE__, __LINE__)
#define todo(platform) for (winetest_start_todo(platform); \
winetest_loop_todo(); \
winetest_end_todo(platform))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment