equal
deleted
inserted
replaced
25 /** |
25 /** |
26 Debug macro for serial port logging of function names and signatures |
26 Debug macro for serial port logging of function names and signatures |
27 e.g. |
27 e.g. |
28 <Function> void CMyClass::MyFunction (TInt aParam) |
28 <Function> void CMyClass::MyFunction (TInt aParam) |
29 */ |
29 */ |
30 #define LOG_FUNC if (gVerboseOutput) RDebug::Printf("<Function> %s", __PRETTY_FUNCTION__); |
|
31 |
30 |
32 const TInt KErrAssertionInternal = 3; |
31 const TInt KErrAssertionInternal = 3; |
33 |
32 |
34 #define TEST_ASSERTION(a,b) if (!(a)) {test.Printf(_L("ASSERTION FAILED!\n line %d file %S.\n"), \ |
33 #define TEST_ASSERTION(a,b) if (!(a)) {test.Printf(_L("ASSERTION FAILED!\n line %d file %S.\n"), \ |
35 __LINE__, __FILE__); test.Printf(b); \ |
34 __LINE__, __FILE__); test.Printf(b); \ |
36 __ASSERT_ALWAYS(a, User::Panic(_L("Test F/W Err"), KErrAssertionInternal));}; |
35 __ASSERT_ALWAYS(a, User::Panic(_L("Test F/W Err"), KErrAssertionInternal));}; |
37 |
36 |
38 |
37 |
39 #define LOG_FUNCERROR(a) RDebug::Printf("[WARNING %s failed %d]", __PRETTY_FUNCTION__, a); |
|
40 |
38 |
41 /** |
39 /** |
42 Debug macro to output test in 'verbose' detail mode |
40 Debug macro to output test in 'verbose' detail mode |
43 */ |
41 */ |
44 #define LOG_VERBOSE1(a) if (gVerboseOutput) test.Printf(a); |
42 #define LOG_VERBOSE1(a) if (gVerboseOutput) test.Printf(a); |